MCPcopy Create free account
hub / github.com/apache/arrow / setup

Method setup

c_glib/test/test-tensor.rb:21–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19 include Helper::Omittable
20
21 def setup
22 @raw_data = [
23 1, 2,
24 3, 4,
25
26 5, 6,
27 7, 8,
28
29 9, 10,
30 11, 12,
31 ]
32 data = Arrow::Buffer.new(@raw_data.pack("c*"))
33 @shape = [3, 2, 2]
34 strides = []
35 names = ["a", "b", "c"]
36 @tensor = Arrow::Tensor.new(Arrow::Int8DataType.new,
37 data,
38 @shape,
39 strides,
40 names)
41 end
42
43 def test_equal
44 data = Arrow::Buffer.new(@raw_data.pack("c*"))

Callers

nothing calls this directly

Calls 2

newMethod · 0.45
packMethod · 0.45

Tested by

no test coverage detected