Skip to main content

Module capability

Module capability 

Source
Expand description

Backend operation capability descriptors.

§Examples

use tenferro_core_ops::PrimitiveOpKind;
use tenferro_tensor::{capability_output_dtype, DType};

assert_eq!(
    capability_output_dtype(PrimitiveOpKind::Compare, DType::F64),
    Some(DType::Bool)
);

Structs§

CapabilityQuery
Query key for a backend capability lookup.
OperationCapability
One backend capability entry for a primitive op and input dtype.

Enums§

BackendId
Stable backend identifier used by capability descriptors.
CapabilityAxis
Axis within an operation capability entry.
SupportLevel
Three-valued support level for a backend capability axis.

Traits§

TensorBackendCapability
Backend capability query surface.

Functions§

capability_output_dtype
Return the output dtype allowed by the core op catalog policy for a unary dtype representative.