pub enum Target {
Pjrt,
Jax,
}Expand description
Where the emitted StableHLO will be compiled.
The output is the same for both targets except where a PJRT plugin’s defaults differ from the semantics ruxla guarantees.
Variants§
Pjrt
Compiled by a PJRT plugin from Rust (the default).
Some CPU plugins enable XLA’s fast min/max, under which maximum and
minimum do not propagate NaN, and XLA’s debug options cannot be
overridden one by one. NaN propagation is therefore made explicit.
Jax
Embedded in a module that JAX compiles. The output follows JAX’s own lowering, so that the optimized HLO matches a JAX implementation.
Trait Implementations§
impl Copy for Target
impl Eq for Target
impl StructuralPartialEq for Target
Auto Trait Implementations§
impl Freeze for Target
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnsafeUnpin for Target
impl UnwindSafe for Target
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