pub struct BFloat16(/* private fields */);
Expand description
BFloat16 provides a Rust type for BFloat16. Note that this is not the same as half::f16. BFloat16 is not an IEEE-754 16-bit float. See https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/framework/bfloat16.h for details.
Trait Implementations§
Source§impl PartialOrd for BFloat16
impl PartialOrd for BFloat16
Source§impl TensorType for BFloat16
impl TensorType for BFloat16
impl Copy for BFloat16
Auto Trait Implementations§
impl Freeze for BFloat16
impl RefUnwindSafe for BFloat16
impl Send for BFloat16
impl Sync for BFloat16
impl Unpin for BFloat16
impl UnwindSafe for BFloat16
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,
Source§impl<T> ExprImpl<T> for Twhere
T: TensorType,
impl<T> ExprImpl<T> for Twhere
T: TensorType,
Source§fn create_operation(
&self,
graph: &mut Graph,
_children: &[Operation],
id_gen: &mut dyn FnMut() -> String,
) -> Result<Operation, Status>
fn create_operation( &self, graph: &mut Graph, _children: &[Operation], id_gen: &mut dyn FnMut() -> String, ) -> Result<Operation, Status>
Creates an operation for the expression. Read more
Source§fn derivative_by_variable(&self, _var: &str) -> Result<Expr<T>, Status>
fn derivative_by_variable(&self, _var: &str) -> Result<Expr<T>, Status>
Returns the derivative of the expression with respect to the given variable.
Source§fn shape_hint(&self) -> ShapeHint<'_>
fn shape_hint(&self) -> ShapeHint<'_>
Returns a hint about the expression’s shape.