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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6294a5809ed3ea9b3d3f9954b351b8c8e5d81c37e9318ae5044d243320166b20
4
- data.tar.gz: 57d8036a0449497cbf040c8650c4dcdbe3e0f09191951d77e6d907c6b3c1013d
3
+ metadata.gz: a40eda909da15ec34573f3fa447519c3cb5553092d6eb35189d02c88154f1669
4
+ data.tar.gz: cb795ca4c53189534f306c874f90db531c3b14fd17a14d83a592d2e73dd255ff
5
5
  SHA512:
6
- metadata.gz: c7aaf862b43f72f5ca8e7f6f6aca079195c11420db081f9c4f18f161610598d975fb81a036689dcd3158d200c33e39e67841bded2e728f2a2fb1b5b8d9e9dfad
7
- data.tar.gz: afaf4c344951629248f79bb03246f6879555a58438d07107dea008aa2433d08115d56b1f9464cf20065c276417d3d90a59aecbfefa304208ee81ae313867bad6
6
+ metadata.gz: 750e2103e8ab7b029f7f3acd439088ba41890d1aabab5761d1ea768f556ae7550d2cef91545e83eebb9b09ef9b76d9dac939f9fa80a7c1478dd7d4668a2a6c0e
7
+ data.tar.gz: d22f3569dc06cc653bfc0d2786eb952ffad858dd2b235f736ebbabbc2f26b73f4c5b92c3776f2004b8076818730de1f1012b7a9ef615a84909c806abf7e96f52
@@ -1,3 +1,7 @@
1
+ ## 0.4.1 (2020-10-12)
2
+
3
+ - Fixed installation error with Ruby < 2.7
4
+
1
5
  ## 0.4.0 (2020-09-27)
2
6
 
3
7
  - Improved performance of methods
@@ -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
- "rb_#{def_method}(m, \"#{ruby_name}\", #{type}_#{name}, -1);"
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)
@@ -1,3 +1,3 @@
1
1
  module Torch
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
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.0
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-09-27 00:00:00.000000000 Z
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
- - !ruby/object:Gem::Dependency
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.1.2
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: []