|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
|
nodiscard |
Hand a tensor to another library through DLPack without copying.
| tensor | Tensor to share; the export keeps it alive until the consumer calls the returned tensor's deleter. |
Definition at line 121 of file TensorDLPack.cpp.
References MayaFlux::Kakshya::TensorDType::bits, MayaFlux::Kakshya::TensorSpec::byte_offset, MayaFlux::Kakshya::TensorSpec::device, MayaFlux::Kakshya::TensorSpec::dtype, MayaFlux::Kakshya::TensorSpec::element_count(), MayaFlux::Kakshya::TensorDevice::id, MayaFlux::Journal::Kakshya, MayaFlux::Kakshya::TensorDType::kind, MayaFlux::Kakshya::TensorDType::lanes, MF_ERROR, MayaFlux::Kakshya::TensorSpec::resolved_strides(), MayaFlux::Journal::Runtime, MayaFlux::Kakshya::TensorSpec::shape, and MayaFlux::Kakshya::TensorDevice::type.