#[non_exhaustive]pub enum OpShapeRule {
MatchInput,
Broadcast,
MatmulNt,
Explicit,
}Expand description
Uniform shape relationship declared by an operation schema.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MatchInput
Output shape matches the admitted input shape.
Broadcast
Inputs use multidirectional broadcasting.
MatmulNt
Right input uses OA’s [N, K] transposed-weight convention.
Explicit
Operation-specific validation and inference is required.
Trait Implementations§
Source§impl Clone for OpShapeRule
impl Clone for OpShapeRule
impl Copy for OpShapeRule
Source§impl Debug for OpShapeRule
impl Debug for OpShapeRule
Source§impl Default for OpShapeRule
impl Default for OpShapeRule
impl Eq for OpShapeRule
Source§impl PartialEq for OpShapeRule
impl PartialEq for OpShapeRule
impl StructuralPartialEq for OpShapeRule
Auto Trait Implementations§
impl Forget for OpShapeRule
impl Freeze for OpShapeRule
impl Move for OpShapeRule
impl RefUnwindSafe for OpShapeRule
impl Send for OpShapeRule
impl Sync for OpShapeRule
impl Unpin for OpShapeRule
impl UnsafeUnpin for OpShapeRule
impl UnwindSafe for OpShapeRule
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more