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

Method Import

cpp/src/arrow/c/dlpack_test.cc:411–413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

409 static constexpr const char* name = "Array";
410
411 static Result<Imported> Import(DLManagedTensorVersioned* raw) {
412 return ImportArrayVersioned(raw);
413 }
414 static std::shared_ptr<DataType> ValueType(const Imported& arr) { return arr->type(); }
415 static const uint8_t* RawData(const Imported& arr) {
416 return arr->data()->buffers[1]->data() + arr->offset() * arr->type()->byte_width();

Callers

nothing calls this directly

Calls 1

ImportArrayVersionedFunction · 0.85

Tested by

no test coverage detected