torch-rb 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/lib/torch.rb +5 -0
- data/lib/torch/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa01dc7cfd168494f1066f4e692eb08dee7f419126b2d10a6eb5b2b22fe01526
|
4
|
+
data.tar.gz: 9e69a7da9ecc85c51bd9cfb42b93f1b1aa6148958ed8bc16ffb0555b6d42159d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36bc620212235e57a40d9e791b3eae85fbd73c7224a5445e2e94e49c7a3ec4cb638024193d8e47817e577a72ef96976fdf2851f3607fd3ea1712255bca0e1ec1
|
7
|
+
data.tar.gz: 888971d06717b610020644ed720ae48fa645a90790d54692ac64a565434b550ce4f778688f0a22806f018656dd9d6183d6510fc458c8c5e82c0629951489279c
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
data/lib/torch.rb
CHANGED
@@ -471,6 +471,11 @@ module Torch
|
|
471
471
|
_stft(input, n_fft, hop_length, win_length, window, normalized, onesided)
|
472
472
|
end
|
473
473
|
|
474
|
+
def clamp(tensor, min, max)
|
475
|
+
tensor = _clamp_min(tensor, min)
|
476
|
+
_clamp_max(tensor, max)
|
477
|
+
end
|
478
|
+
|
474
479
|
private
|
475
480
|
|
476
481
|
def to_ivalue(obj)
|
data/lib/torch/version.rb
CHANGED