pub struct XlaComputation(/* private fields */);
Expand description
A computation is built from a root XlaOp
. Computations are device independent and can be
specialized to a given device through a compilation step.
Implementations§
Source§impl XlaComputation
impl XlaComputation
pub fn from_proto(proto: &HloModuleProto) -> Self
Sourcepub fn compile(&self, client: &PjRtClient) -> Result<PjRtLoadedExecutable>
pub fn compile(&self, client: &PjRtClient) -> Result<PjRtLoadedExecutable>
Compile this computation for the specified client.
Sourcepub fn proto(&self) -> HloModuleProto
pub fn proto(&self) -> HloModuleProto
Get the HloModuleProto for the computation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for XlaComputation
impl RefUnwindSafe for XlaComputation
impl !Send for XlaComputation
impl !Sync for XlaComputation
impl Unpin for XlaComputation
impl UnwindSafe for XlaComputation
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