MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ TensorContainer() [2/2]

MayaFlux::Kakshya::TensorContainer::TensorContainer ( TensorSpec spec)
explicit

Allocate a zero-filled tensor for a spec.

Exceptions
std::invalid_argumentIf the spec is inconsistent or not host memory.

Definition at line 34 of file TensorContainer.cpp.

35{
36 auto allocated = TensorData::allocate(std::move(spec));
37 if (!allocated) {
38 error<std::invalid_argument>(
40 std::source_location::current(),
41 "TensorContainer: the spec is inconsistent or not host memory");
42 }
43 m_data = std::move(*allocated);
44}
static std::optional< TensorData > allocate(TensorSpec spec)
Zero-filled tensor for a spec.
Definition Tensor.cpp:72
@ Configuration
Configuration and parameter updates.
@ Kakshya
Containers[Signalsource, Stream, File], Regions, DataProcessors.

References MayaFlux::Kakshya::TensorData::allocate(), MayaFlux::Journal::Configuration, MayaFlux::Journal::Kakshya, and m_data.

Here is the call graph for this function: