50 [[nodiscard]] std::string
get_name()
const override {
return "TensorConverter"; }
61 [[nodiscard]]
bool validate_input(
const input_type& input)
const override;
64 output_type operation_function(
const input_type& input)
override;
#define MF_DESCRIBE(...)
Requests a generated member description for a struct at namespace scope.
ConfigRefs stored_configs(Supports< Configs... >) const
OperationType get_operation_type() const override
Returns the category of this operation for grammar and registry discovery.
ConfigRefs configs() const override
The stored settings, or none when defaults are in use.
std::string get_name() const override
Get operation name for debugging/introspection.
Supports< TensorConversionConfig > supports
Converts the element type of a tensor, reading and writing quantization.
OperationType
Operation categories for organization and discovery.
std::vector< std::reference_wrapper< const OperationConfig > > ConfigRefs
Borrowed views of the configs an operation holds.
static constexpr TensorDType of() noexcept
Type for a C++ scalar or complex element.
Element type as kind, bit width and lane count.
OperationConfig()=default
The config structs an operation class accepts, declared as using supports.
std::optional< Kakshya::TensorQuantization > quantization
Quantization the result carries; the target must be an integer type of at most 32 bits.
Kakshya::TensorDType target
Element type of the result.
Settings of TensorConverter, stored whole in the operation's facets.