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

Function garrow_tensor_new_raw_buffer

c_glib/arrow-glib/tensor.cpp:445–452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

443}
444
445GArrowTensor *
446garrow_tensor_new_raw_buffer(std::shared_ptr<arrow::Tensor> *arrow_tensor,
447 GArrowBuffer *buffer)
448{
449 auto tensor = GARROW_TENSOR(
450 g_object_new(GARROW_TYPE_TENSOR, "tensor", arrow_tensor, "buffer", buffer, NULL));
451 return tensor;
452}
453
454std::shared_ptr<arrow::Tensor>
455garrow_tensor_get_raw(GArrowTensor *tensor)

Callers 2

garrow_tensor_newFunction · 0.85
tensor.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected