torch-rb 0.14.1 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/README.md +4 -6
- data/codegen/native_functions.yaml +552 -118
- data/ext/torch/extconf.rb +3 -0
- data/ext/torch/templates.h +0 -23
- data/ext/torch/tensor.cpp +1 -0
- data/ext/torch/utils.h +1 -1
- data/lib/torch/inspector.rb +8 -3
- data/lib/torch/nn/elu.rb +20 -0
- data/lib/torch/nn/functional.rb +12 -0
- data/lib/torch/nn/gelu.rb +18 -0
- data/lib/torch/nn/leaky_relu.rb +1 -1
- data/lib/torch/version.rb +1 -1
- data/lib/torch.rb +2 -0
- metadata +6 -11
- data/ext/torch/fft_functions.h +0 -6
- data/ext/torch/linalg_functions.h +0 -6
- data/ext/torch/nn_functions.h +0 -6
- data/ext/torch/sparse_functions.h +0 -6
- data/ext/torch/special_functions.h +0 -6
- data/ext/torch/tensor_functions.h +0 -6
- data/ext/torch/torch_functions.h +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8442fc0f85d6f2465258a54e5aefbe03d23a7c0e58753e06855bfebd2f4de802
|
4
|
+
data.tar.gz: ac0efb89f9b6d413498bfb1c2e84336aa728047dd013d00fa736449e5be82617
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6830efe74de98fc8a8d23e7308795a60ee60fff72b3f82fa7cb92815f4efe52fdf3637e0821490f5e3e8c2c8731043f52f5aff20cfb01db1340be0962fed18db
|
7
|
+
data.tar.gz: 3e50976e5add37b4158956c76e3c922167911492acda9e171af42ad39d5abe946c36427e545d9fc820a2800e3df0523b0068ce76b804d0c05a6f1e2ad495de01
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,14 @@
|
|
1
|
+
## 0.16.0 (2024-06-12)
|
2
|
+
|
3
|
+
- Updated LibTorch to 2.3.0
|
4
|
+
- Added `ELU` and `GELU` classes
|
5
|
+
- Dropped support for Ruby < 3.1
|
6
|
+
|
7
|
+
## 0.15.0 (2024-02-28)
|
8
|
+
|
9
|
+
- Updated LibTorch to 2.2.0
|
10
|
+
- Fixed error with `inspect` for MPS tensors
|
11
|
+
|
1
12
|
## 0.14.1 (2023-12-26)
|
2
13
|
|
3
14
|
- Fixed default arguments for `conv1d`
|
data/README.md
CHANGED
@@ -10,7 +10,7 @@ Check out:
|
|
10
10
|
- [TorchRec](https://github.com/ankane/torchrec-ruby) for recommendation systems
|
11
11
|
- [TorchData](https://github.com/ankane/torchdata-ruby) for data loading
|
12
12
|
|
13
|
-
[![Build Status](https://github.com/ankane/torch.rb/workflows/build/badge.svg
|
13
|
+
[![Build Status](https://github.com/ankane/torch.rb/actions/workflows/build.yml/badge.svg)](https://github.com/ankane/torch.rb/actions)
|
14
14
|
|
15
15
|
## Installation
|
16
16
|
|
@@ -89,7 +89,7 @@ Each tensor has four properties
|
|
89
89
|
You can specify properties when creating a tensor
|
90
90
|
|
91
91
|
```ruby
|
92
|
-
Torch.rand(2, 3, dtype: :
|
92
|
+
Torch.rand(2, 3, dtype: :float64, layout: :strided, device: "cpu", requires_grad: true)
|
93
93
|
```
|
94
94
|
|
95
95
|
### Operations
|
@@ -410,13 +410,11 @@ Here’s the list of compatible versions.
|
|
410
410
|
|
411
411
|
Torch.rb | LibTorch
|
412
412
|
--- | ---
|
413
|
+
0.16.x | 2.3.x
|
414
|
+
0.15.x | 2.2.x
|
413
415
|
0.14.x | 2.1.x
|
414
416
|
0.13.x | 2.0.x
|
415
417
|
0.12.x | 1.13.x
|
416
|
-
0.11.x | 1.12.x
|
417
|
-
0.10.x | 1.11.x
|
418
|
-
0.9.x | 1.10.x
|
419
|
-
0.8.x | 1.9.x
|
420
418
|
|
421
419
|
### Homebrew
|
422
420
|
|