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

Method data_as

cpp/src/arrow/c/dlpack.cc:306–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304
305 template <typename T>
306 T* data_as() {
307 return static_cast<T*>(tensor().data);
308 }
309
310 std::span<const int64_t> shape() const {
311 return {tensor().shape, static_cast<std::size_t>(ndim())};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected