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 +4 -4
- data/lib/arrow-numo-narray/to-arrow.rb +8 -5
- data/lib/arrow-numo-narray/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ee08d04f293191d2e5d9b95863f0b47d214df2084a072bc2cec614b6072d355
|
4
|
+
data.tar.gz: dae49151666303807737d13a8ce2cf2cc2b6d5a9a09618fd3648c66628f17173
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
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
|
|
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
|
+
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:
|
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
|
-
|
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
|