MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
TensorConvert.cpp File Reference
#include "TensorConvert.hpp"
#include "SmallFloat.hpp"
#include <bit>
Include dependency graph for TensorConvert.cpp:

Go to the source code of this file.

Namespaces

namespace  MayaFlux
 Main namespace for the Maya Flux audio engine.
namespace  MayaFlux::Kakshya

Functions

std::expected< TensorData, std::string > MayaFlux::Kakshya::convert_tensor (const TensorAccess &source, TensorDType target, const std::optional< TensorQuantization > &quantization=std::nullopt)
 Convert the elements of a tensor to another element type.
std::string MayaFlux::Kakshya::diagnose_conversion (const TensorSpec &source, TensorDType target, const std::optional< TensorQuantization > &quantization=std::nullopt)
 Empty when a tensor can be converted to a type, otherwise the reason it cannot.