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

Method setup

ruby/red-arrow/test/test-tensor.rb:21–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19 sub_test_case("class methods") do
20 sub_test_case(".new") do
21 def setup
22 @raw_tensor = [
23 [
24 [1, 2, 3, 4],
25 [5, 6, 7, 8],
26 ],
27 [
28 [9, 10, 11, 12],
29 [13, 14, 15, 16],
30 ],
31 [
32 [17, 18, 19, 20],
33 [21, 22, 23, 24],
34 ],
35 ]
36 @shape = [3, 2, 4]
37 @strides = [8, 4, 1]
38 end
39
40 test("Array") do
41 tensor = Arrow::Tensor.new(@raw_tensor)

Callers

nothing calls this directly

Calls 3

freezeMethod · 0.80
newMethod · 0.45
packMethod · 0.45

Tested by

no test coverage detected