torch-rb 0.12.2 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8160298f6299869f699201dd9217785da5ac7d2562f05b12a2df2d4537143886
4
- data.tar.gz: cb902f45cb72adaaa2008e181af2af0844e926ef62f1d2ccaa67251cb70c5799
3
+ metadata.gz: 772ef01be10ea497b3dd029c74bd87c650bd2adf2d1f3f26688d9401d2a1d2af
4
+ data.tar.gz: d22bc868344e5d64d70e5327c64dcc3ffe3deacaab4998e157eeec04f27a71de
5
5
  SHA512:
6
- metadata.gz: c5077c40cb32414ac7d230430fdcf1cd93f199a81100179a1aa26185d6216c049316bbf35d79968442fd4db5e18414991946a366e6e7e6260a904f001774faa2
7
- data.tar.gz: b4f1ff33b47596953c0654b07f1916a88ba247af72c1d4693d9b737802a790256d3232c0419c3a603fdebd51f47360833265326a1f27f8242604ff05766ea690
6
+ metadata.gz: b66ec8876a57926a39c2111684205e4110a21af7f9e3dc0c660784f3a27a042fc9395a86bd5cc90bbb99e062116e0e95b7041e2ae9bac2f885b68788a48d97a4
7
+ data.tar.gz: 6417859882a411b2fcb9ab24b694b6934444e4ac38a9f478f4878eac26730de4c220d9bd38e8e728a263422a752ab47c842528462184ea839e157698e4209d51
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.13.0 (2023-04-13)
2
+
3
+ - Updated LibTorch to 2.0.0
4
+ - Dropped support for Ruby < 3
5
+
1
6
  ## 0.12.2 (2023-01-30)
2
7
 
3
8
  - Added experimental support for DataPipes
data/README.md CHANGED
@@ -8,6 +8,7 @@ Check out:
8
8
  - [TorchText](https://github.com/ankane/torchtext) for text and NLP tasks
9
9
  - [TorchAudio](https://github.com/ankane/torchaudio) for audio tasks
10
10
  - [TorchRec](https://github.com/ankane/torchrec-ruby) for recommendation systems
11
+ - [TorchData](https://github.com/ankane/torchdata-ruby) for data loading
11
12
 
12
13
  [![Build Status](https://github.com/ankane/torch.rb/workflows/build/badge.svg?branch=master)](https://github.com/ankane/torch.rb/actions)
13
14
 
@@ -409,7 +410,8 @@ Here’s the list of compatible versions.
409
410
 
410
411
  Torch.rb | LibTorch
411
412
  --- | ---
412
- 0.12.0+ | 1.13.0+
413
+ 0.13.0+ | 2.0.0+
414
+ 0.12.0-0.12.2 | 1.13.0-1.13.1
413
415
  0.11.0-0.11.2 | 1.12.0-1.12.1
414
416
  0.10.0-0.10.2 | 1.11.0
415
417
  0.9.0-0.9.2 | 1.10.0-1.10.2
@@ -415,6 +415,8 @@ def generate_function_params(function, params, remove_self)
415
415
  "memoryformat"
416
416
  when "Storage"
417
417
  "storage"
418
+ when "Layout"
419
+ "layout"
418
420
  else
419
421
  raise "Unknown type: #{param[:type]} (#{function.name})"
420
422
  end
@@ -445,7 +447,7 @@ def generate_dispatch_code(function, def_method, params, opt_index, remove_self)
445
447
  # torch::empty sets requires_grad by at::empty doesn't
446
448
  # https://github.com/pytorch/pytorch/issues/36455
447
449
  prefix = remove_self ? "self." : (opt_index ? "torch::" : "at::")
448
- dispatch = function.dispatch_name
450
+ dispatch = nil # function.dispatch_name
449
451
  unless dispatch
450
452
  dispatch = function.base_name
451
453
  dispatch += "_symint" if function.func.include?("SymInt")
@@ -640,7 +642,7 @@ def signature_type(param)
640
642
  when "int"
641
643
  "int64_t"
642
644
  when "SymInt"
643
- "c10::SymInt"
645
+ "SymInt"
644
646
  when "float"
645
647
  "double"
646
648
  when "str"