module Numo::ArrowConvertable

Public Instance Methods

to_arrow() click to toggle source
# File lib/arrow-numo-narray/to-arrow.rb, line 17
def to_arrow
  data = to_binary
  tensor = Arrow::Tensor.new(arrow_data_type,
                             Arrow::Buffer.new(data),
                             shape,
                             nil,
                             nil)
  tensor.instance_variable_set(:@data, data)
  tensor
end