red-arrow-numo-narray 0.0.4 → 0.0.5

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: 2a484511f7152fa12df7cc0b356f775c70462b977e0783e5c9d4552f2a1beda7
4
- data.tar.gz: d569a6d94ba32eb1893d9bc465a2f386ffbc91b7edff0a945bb9bcb2ddf786d2
3
+ metadata.gz: 1ee08d04f293191d2e5d9b95863f0b47d214df2084a072bc2cec614b6072d355
4
+ data.tar.gz: dae49151666303807737d13a8ce2cf2cc2b6d5a9a09618fd3648c66628f17173
5
5
  SHA512:
6
- metadata.gz: dc715d39ee68ffc7e68ffed95b0b89badc85b83bb37ae7586443d6cd4896c5b823b89bdf5f9128253dc1a65b306db947fb80a0fbddd501b92bc1a3319e339679
7
- data.tar.gz: 94cf907a219e1623314b48463ea70676995b1661a9f301bc6362970e214f0fd519cf2f2c2dc1d85258b13a5b42a3d102c33db24a0ea817a73a68c2ed51307240
6
+ metadata.gz: 4b0ca371dc3e1249a1a7dd9d974e50dc336168e255f3081c6871b7c8ca9a20e137ddab75a4c4959c5b7bda725a0a5068c7ff926a2045fbff53c603151b747467
7
+ data.tar.gz: 5866d4c1e3cf74199ae7c1867354e1c32854e7541bfedbbd0ca5428e7db8f517483cdacf04d05680d58da19f34379d98820564917ad4c0e56641b4ec95e4bc73
@@ -15,11 +15,14 @@
15
15
  module Numo
16
16
  module ArrowConvertable
17
17
  def to_arrow
18
- Arrow::Tensor.new(arrow_data_type,
19
- Arrow::Buffer.new(to_binary),
20
- shape,
21
- nil,
22
- nil)
18
+ data = to_binary
19
+ tensor = Arrow::Tensor.new(arrow_data_type,
20
+ Arrow::Buffer.new(data),
21
+ shape,
22
+ nil,
23
+ nil)
24
+ tensor.instance_variable_set(:@data, data)
25
+ tensor
23
26
  end
24
27
  end
25
28
 
@@ -13,5 +13,5 @@
13
13
  # limitations under the License.
14
14
 
15
15
  module ArrowNumoNArray
16
- VERSION = "0.0.4"
16
+ VERSION = "0.0.5"
17
17
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: red-arrow-numo-narray
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-19 00:00:00.000000000 Z
11
+ date: 2020-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: red-arrow
@@ -155,8 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
155
  - !ruby/object:Gem::Version
156
156
  version: '0'
157
157
  requirements: []
158
- rubyforge_project:
159
- rubygems_version: 2.7.6.2
158
+ rubygems_version: 3.2.0.pre1
160
159
  signing_key:
161
160
  specification_version: 4
162
161
  summary: Red Arrow Numo::NArray is a library that provides converters between Apache