MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
TensorConvert.hpp File Reference
#include "Tensor.hpp"
#include <expected>
Include dependency graph for TensorConvert.hpp:
This graph shows which files directly or indirectly include this file:

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.