torch-rb 0.22.2 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +3 -2
- data/codegen/native_functions.yaml +259 -103
- data/ext/torch/device.cpp +5 -2
- data/ext/torch/ruby_arg_parser.cpp +2 -1
- data/ext/torch/ruby_arg_parser.h +5 -2
- data/ext/torch/templates.h +4 -4
- data/ext/torch/tensor.cpp +1 -1
- data/ext/torch/utils.h +6 -1
- data/lib/torch/device.rb +0 -1
- data/lib/torch/tensor.rb +1 -6
- data/lib/torch/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f09e8876f931e0d2d2ed1620cfac6019b2d3ac9a42e708bc2d2bc5d9e0f84e51
|
|
4
|
+
data.tar.gz: 55712f92837b23fb952c78c30413203be47d09f736f3641a7a46cd34a6c085df
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d2c140c59a26644f953dc7996b16cf83cee57d3c573e18275169fde76d85528c480ce905e57e97f0dc3d211a1c5987406785eb469ee75a64990482029ad594e2
|
|
7
|
+
data.tar.gz: 4460ebd50c579464a6272f463421ae1b6783e5123b79e9278477439ab3a4b0a582cad1951288610c19d323bc25ce770c72968e0cbedc509376c0de0778843be5
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## 0.23.0 (2026-01-21)
|
|
2
|
+
|
|
3
|
+
- Updated LibTorch to 2.10.0
|
|
4
|
+
- Changed `Tensor#device` method to return `Device` instead of string
|
|
5
|
+
- Fixed `item` method for multi-dimensional tensors
|
|
6
|
+
- Fixed error with Rice 4.8
|
|
7
|
+
|
|
1
8
|
## 0.22.2 (2025-11-04)
|
|
2
9
|
|
|
3
10
|
- Added support for CUDA 12.9+
|
data/README.md
CHANGED
|
@@ -22,7 +22,7 @@ As well as:
|
|
|
22
22
|
First, [download LibTorch](https://pytorch.org/get-started/locally/). For Mac arm64, use:
|
|
23
23
|
|
|
24
24
|
```sh
|
|
25
|
-
curl -L https://download.pytorch.org/libtorch/cpu/libtorch-macos-arm64-2.9.
|
|
25
|
+
curl -L https://download.pytorch.org/libtorch/cpu/libtorch-macos-arm64-2.9.1.zip > libtorch.zip
|
|
26
26
|
unzip -q libtorch.zip
|
|
27
27
|
```
|
|
28
28
|
|
|
@@ -31,7 +31,7 @@ For Linux x86-64, use the build that matches your CUDA version. For other platfo
|
|
|
31
31
|
Then run:
|
|
32
32
|
|
|
33
33
|
```sh
|
|
34
|
-
bundle config build.torch-rb --with-torch-dir=/path/to/libtorch
|
|
34
|
+
bundle config set build.torch-rb --with-torch-dir=/path/to/libtorch
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
And add this line to your application’s Gemfile:
|
|
@@ -418,6 +418,7 @@ Here’s the list of compatible versions.
|
|
|
418
418
|
|
|
419
419
|
Torch.rb | LibTorch
|
|
420
420
|
--- | ---
|
|
421
|
+
0.23.x | 2.10.x
|
|
421
422
|
0.22.x | 2.9.x
|
|
422
423
|
0.21.x | 2.8.x
|
|
423
424
|
0.20.x | 2.7.x
|