torch-rb 0.4.0 → 0.4.1
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/codegen/generate_functions.rb +4 -1
- data/lib/torch/version.rb +1 -1
- metadata +7 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a40eda909da15ec34573f3fa447519c3cb5553092d6eb35189d02c88154f1669
|
4
|
+
data.tar.gz: cb795ca4c53189534f306c874f90db531c3b14fd17a14d83a592d2e73dd255ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 750e2103e8ab7b029f7f3acd439088ba41890d1aabab5761d1ea768f556ae7550d2cef91545e83eebb9b09ef9b76d9dac939f9fa80a7c1478dd7d4668a2a6c0e
|
7
|
+
data.tar.gz: d22f3569dc06cc653bfc0d2786eb952ffad858dd2b235f736ebbabbc2f26b73f4c5b92c3776f2004b8076818730de1f1012b7a9ef615a84909c806abf7e96f52
|
data/CHANGELOG.md
CHANGED
@@ -114,7 +114,10 @@ def generate_attach_def(name, type, def_method)
|
|
114
114
|
|
115
115
|
ruby_name = "_#{ruby_name}" if ["size", "stride", "random!"].include?(ruby_name)
|
116
116
|
|
117
|
-
|
117
|
+
# cast for Ruby < 2.7 https://github.com/thisMagpie/fftw/issues/22#issuecomment-49508900
|
118
|
+
cast = RUBY_VERSION.to_f > 2.7 ? "" : "(VALUE (*)(...)) "
|
119
|
+
|
120
|
+
"rb_#{def_method}(m, \"#{ruby_name}\", #{cast}#{type}_#{name}, -1);"
|
118
121
|
end
|
119
122
|
|
120
123
|
def generate_method_def(name, functions, type, def_method)
|
data/lib/torch/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: torch-rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rice
|
@@ -108,21 +108,7 @@ dependencies:
|
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: 0.1.1
|
111
|
-
|
112
|
-
name: magro
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - ">="
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '0'
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - ">="
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '0'
|
125
|
-
description:
|
111
|
+
description:
|
126
112
|
email: andrew@chartkick.com
|
127
113
|
executables: []
|
128
114
|
extensions:
|
@@ -288,7 +274,7 @@ homepage: https://github.com/ankane/torch.rb
|
|
288
274
|
licenses:
|
289
275
|
- BSD-3-Clause
|
290
276
|
metadata: {}
|
291
|
-
post_install_message:
|
277
|
+
post_install_message:
|
292
278
|
rdoc_options: []
|
293
279
|
require_paths:
|
294
280
|
- lib
|
@@ -303,8 +289,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
303
289
|
- !ruby/object:Gem::Version
|
304
290
|
version: '0'
|
305
291
|
requirements: []
|
306
|
-
rubygems_version: 3.
|
307
|
-
signing_key:
|
292
|
+
rubygems_version: 3.0.3
|
293
|
+
signing_key:
|
308
294
|
specification_version: 4
|
309
295
|
summary: Deep learning for Ruby, powered by LibTorch
|
310
296
|
test_files: []
|