pub type KernelIrError = KernelError;Expand description
Backward-compatible name for KernelError in IR APIs.
Aliased Type§
pub enum KernelIrError {
Empty,
RootOutOfBounds {
root: usize,
len: usize,
},
GradientOutOfBounds {
output: usize,
len: usize,
},
EmptyCacheOutputs,
CacheOutputOutOfBounds {
output: usize,
len: usize,
},
GradientKindMismatch {
output: usize,
actual: KernelValueKind,
},
InvalidOperand {
value: usize,
operand: usize,
},
EmptyOperands {
value: usize,
operation: &'static str,
},
KindMismatch {
value: usize,
expected: KernelValueKind,
actual: KernelValueKind,
},
ClassMismatch {
value: usize,
expected: KernelValueClass,
actual: KernelValueClass,
},
InvalidShape {
value: usize,
operation: &'static str,
message: String,
},
}Variants§
Empty
The IR contained no values.
RootOutOfBounds
The scalar root identifier was outside the value array.
GradientOutOfBounds
A gradient output identifier was outside the value array.
EmptyCacheOutputs
A cache kernel had no outputs.
CacheOutputOutOfBounds
A cache output identifier was outside the value array.
GradientKindMismatch
A gradient output was not real-valued.
InvalidOperand
An instruction referenced a value that did not precede it.
EmptyOperands
An instruction requiring operands was empty.
Fields
KindMismatch
A value’s declared kind did not match its instruction.
Fields
§
expected: KernelValueKindKind produced by the instruction.
§
actual: KernelValueKindDeclared kind.
ClassMismatch
A value’s declared evaluation class did not match its dependencies.
Fields
§
expected: KernelValueClassClass required by the dependencies.
§
actual: KernelValueClassDeclared class.
InvalidShape
Operand shapes were incompatible with an instruction.