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

Method Import

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

Source from the content-addressed store, hash-verified

388 static constexpr const char* name = "Tensor";
389
390 static Result<Imported> Import(DLManagedTensorVersioned* raw) {
391 return ImportTensorVersioned(raw);
392 }
393 static std::shared_ptr<DataType> ValueType(const Imported& t) { return t->type(); }
394 static const uint8_t* RawData(const Imported& t) { return t->raw_data(); }
395 static bool IsMutable(const Imported& t) { return t->is_mutable(); }

Callers

nothing calls this directly

Calls 1

ImportTensorVersionedFunction · 0.85

Tested by

no test coverage detected