Mila
Deep Neural Network Library
Loading...
Searching...
No Matches
Mila::Dnn::Compute::OperationSupported Concept Referenceexport

True iff a concrete OperationTraits specialization exists for the tuple. More...

Concept definition

template<OperationType TOp, DeviceType TDeviceType, TensorDataType TPrecision, typename TPolicy = void>
True iff a concrete OperationTraits specialization exists for the tuple.
Definition OperationTraits.Template.ixx:79
Primary traits template for unified compile-time operation dispatch.
Definition OperationTraits.Template.ixx:60

Detailed Description

True iff a concrete OperationTraits specialization exists for the tuple.

SFINAE-safe: probes whether OperationTraits<...> is a complete type (a matching specialization completes it; the undefined primary stays incomplete for every unsupported tuple). Satisfied for both type-bearing and op_for-bearing specializations. Usable in if constexpr and static_assert to skip or reject (Op, Device, Precision, Policy) combinations without triggering a hard error – the seam a multi-precision typed test uses to sweep only the precisions an op actually implements.

Template Parameters
TOpOperation identifier from the OperationType enum.
TDeviceTypeTarget device (Cpu, Cuda, ...).
TPrecisionCompute and activation precision.
TPolicyOptional policy type. Defaults to void for policy-free ops.