1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
//! Interface-segregated sub-traits for [`BackendOps`].
//!
//! This module exports single-concern capability traits. `BackendOps`
//! composes the six capabilities shared by every backend; attention, optimizer,
//! random initialization, and half-vector rotation remain optional capabilities
//! so unrelated kernels do not acquire unsupported bounds. Backends implement
//! each trait independently;
//! the blanket impl in
//! [`crate::backend_ops::trait_def`] provides `BackendOps` automatically. This satisfies
//! the interface-segregation principle: call sites can bound on only the
//! sub-trait they need (e.g. `B: ElementwiseOps<T>`) instead of pulling in
//! all 36 methods.
//!
//! Sub-traits and their concerns:
//! - [`ElementwiseOps`] — binary and unary element-wise ops
//! - [`FiniteDifference3DOps`] — 3-D first-derivative stencils, fixed schemes
//! and the arbitrary-order staggered gradient/divergence pair
//! - [`MatmulOps`] — matmul, batched matmul, accumulate variants
//! - [`ReductionOps`] — reduce, argmax/argmin, topk, cumulative sum/product scans
//! - [`ConvOps`] — regular convolution and 1D/2D transposed convolution
//! - [`CrossOps`] — per-channel 3-vector cross product
//! - [`PoolOps`] — max/avg pool 1D/2D/3D forward+backward
//! - [`AttentionOps`] — scaled dot-product attention forward+backward
//! - [`CrossEntropyOps`] — mean classification loss and additive backward
//! - [`CtcOps`] — sequence alignment loss and additive log-probability gradients
//! - [`OptimizerOps`] — fused SGD/Adam/RMSProp/AdamW/AdaGrad steps
//! - [`RandomInitOps`] — seeded provider-native parameter initialization
//! - [`RotateHalfOps`] — rotary half-vector permutation
//! - [`UnfoldFoldOps`] — sliding-window unfold and adjoint fold (1D/2D)
//!
//! [`BackendOps`]: super::BackendOps
/// Per-channel 3-vector cross product capability.
/// Three-dimensional first-derivative stencils.
/// Half-vector rotation capability.
pub use ;
pub use ;
pub use CrossOps;
pub use CrossEntropyOps;
pub use ;
pub use ;
pub use ;
pub use MatmulOps;
pub use ;
pub use PoolOps;
pub use RandomInitOps;
pub use ReductionOps;
pub use RotateHalfOps;
pub use UnfoldFoldOps;