pub enum TpReject {
Multicast {
program: String,
},
NoCrossing(ShardError),
Passes(SpatialReject),
Unlinked {
tensor: String,
chip: u16,
why: &'static str,
},
}Expand description
Why a tensor-parallel lowering refused.
Variants§
Multicast
A section that multicasts: its groups are rectangles of (x, y), which cannot name a chip.
NoCrossing(ShardError)
No hand-off on the target crosses a chip boundary.
Passes(SpatialReject)
Unlinked
A chip’s program cannot halt for a transfer: it sends a tensor no section of it stores, or receives one no section of it loads, or one a section of its own stores.
Trait Implementations§
Source§impl From<SpatialReject> for TpReject
impl From<SpatialReject> for TpReject
Source§fn from(e: SpatialReject) -> Self
fn from(e: SpatialReject) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for TpReject
Auto Trait Implementations§
impl Freeze for TpReject
impl RefUnwindSafe for TpReject
impl Send for TpReject
impl Sync for TpReject
impl Unpin for TpReject
impl UnsafeUnpin for TpReject
impl UnwindSafe for TpReject
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.