pub enum TensorMsg {
Op(Box<dyn TensorDispatch>),
Contract {
a: TensorSpec,
b: TensorSpec,
c: TensorSpec,
alpha: f32,
beta: f32,
reply: Sender<Result<(), GpuError>>,
},
}Expand description
TensorActor mailbox. New requests should use TensorMsg::Op
with a Box<dyn TensorDispatch> — the Contract variant is kept
as a deprecated thin alias for back-compat with the F-phase API.
Variants§
Op(Box<dyn TensorDispatch>)
Type-erased dtype-generic request.
Contract
👎Deprecated: use TensorMsg::Op(Box::new(ContractRequest::<f32>::new(…)))
Legacy f32-only contraction. Constructs a
ContractRequest<f32> internally and routes it through the
same dispatch path. Deprecated.
Fields
§
a: TensorSpec👎Deprecated: use TensorMsg::Op(Box::new(ContractRequest::<f32>::new(…)))
§
b: TensorSpec👎Deprecated: use TensorMsg::Op(Box::new(ContractRequest::<f32>::new(…)))
§
c: TensorSpec👎Deprecated: use TensorMsg::Op(Box::new(ContractRequest::<f32>::new(…)))
Auto Trait Implementations§
impl Freeze for TensorMsg
impl !RefUnwindSafe for TensorMsg
impl Send for TensorMsg
impl !Sync for TensorMsg
impl Unpin for TensorMsg
impl UnsafeUnpin for TensorMsg
impl !UnwindSafe for TensorMsg
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