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

◆ set_quantization()

bool MayaFlux::Kakshya::TensorInsertion::set_quantization ( std::optional< TensorQuantization > quantization)

Attach or clear quantization; it must be consistent with the shape.

Definition at line 146 of file TensorInsertion.cpp.

147{
148 TensorSpec candidate = m_tensor->m_spec;
149 candidate.quantization = std::move(quantization);
150 if (!candidate.is_valid())
151 return false;
152 m_tensor->m_spec = std::move(candidate);
153 return true;
154}

References MayaFlux::Kakshya::TensorSpec::is_valid(), m_tensor, and MayaFlux::Kakshya::TensorSpec::quantization.

Here is the call graph for this function: