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

◆ safetensors_dtype()

std::optional< Kakshya::TensorDType > MayaFlux::IO::Detail::safetensors_dtype ( std::string_view name)
nodiscardnoexcept

Element type for a safetensors dtype name such as F32 or BF16.

Definition at line 68 of file TensorCodec.cpp.

69{
70 for (const auto& entry : k_safetensors) {
71 if (entry.name == name)
72 return Kakshya::TensorDType { .kind = entry.kind, .bits = entry.bits, .lanes = 1 };
73 }
74 return std::nullopt;
75}
Element type as kind, bit width and lane count.

Referenced by MayaFlux::IO::SafetensorsReader::open().

Here is the caller graph for this function: