Expand description
Opset declaration for the CpuBackend.
The backend’s atomic_opset mirrors
bb_ir::tensor_primitives::TENSOR_PRIMITIVES_OPS exactly — the
30-op primitive floor every Backend impl must declare. The
ops that aren’t primitives but ARE backed by ndarray kernels in
this crate (Relu, Sigmoid, Tanh, Softmax, LeakyRelu, Gelu, Dot,
Zeros, Ones, GlobalAveragePool) get listed via
extension_opsets(). Lying entries the prior 49-op declaration
carried (BatchNorm, LayerNorm, Conv, MaxPool, AveragePool,
Scatter, If, Loop) are dropped — they have no kernel.
BackendSubgraph is the framework’s collapse-carrier op; it
lives in ai.bytesandbrains.framework and routes through
invoke_backend_subgraph, not this opset.
Each entry carries type_relations so the TypeSolver narrows
the participating values’ TypeNodes. The canonical relation
slices live in bb_ir::types::common_relations.
Constants§
- EXTENSION_
DOMAIN - Opset domain for the activations + creation + indexing extras
the CpuBackend ships. Same canonical
ai.onnxnamespace; the distinct opset (different version) keeps the floor + extras inspectable as separate declarations. - EXTENSION_
OPSET - Extension opset declaration. Returned alongside the primitive
floor by
CpuBackend::extension_opsets(). - EXTENSION_
VERSION - Backend-shipped extension version. Separate from the primitive floor so a future opset bump on either side stays independent.
- ONNX_
DOMAIN ai.onnxopset domain — primitives + extension ops.- ONNX_
V1_ OPSET - Primitive-floor opset declaration. Returned by
CpuBackend::atomic_opset(). - ONNX_
VERSION - Primitive-floor opset version.
Statics§
- EXTENSION_
OPS - Non-primitive ops the CpuBackend backs with ndarray kernels.
Surfaces via
BackendRuntime::extension_opsets()so the install-time check classifies them correctly (they’re NOT in the primitive floor; users who bind a different backend may not get them). - PRIMITIVE_
OPS - 30-entry primitive-floor opset returned by
BackendRuntime::atomic_opset. Matchesbb_ir::tensor_primitives::TENSOR_PRIMITIVES_OPSelement-for- element.