pub struct Prim(/* private fields */);Expand description
A handle to a primitive, compared by name.
Implementations§
Source§impl Prim
impl Prim
Source§impl Prim
impl Prim
Sourcepub fn lower(
self,
cx: &mut dyn LowerCx,
inputs: &[HloValue],
params: &Params,
outputs: &[AVal],
) -> Result<Vec<HloValue>>
pub fn lower( self, cx: &mut dyn LowerCx, inputs: &[HloValue], params: &Params, outputs: &[AVal], ) -> Result<Vec<HloValue>>
Sourcepub fn batch(
self,
cx: &mut dyn BatchCx,
inputs: &[Batched],
params: &Params,
) -> Result<Vec<Batched>>
pub fn batch( self, cx: &mut dyn BatchCx, inputs: &[Batched], params: &Params, ) -> Result<Vec<Batched>>
Trait Implementations§
impl Copy for Prim
impl Eq for Prim
Auto Trait Implementations§
impl !RefUnwindSafe for Prim
impl !UnwindSafe for Prim
impl Freeze for Prim
impl Send for Prim
impl Sync for Prim
impl Unpin for Prim
impl UnsafeUnpin for Prim
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