Struct tensorflow::BFloat16
source · pub struct BFloat16(_);
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 PartialEq<BFloat16> for BFloat16
impl PartialEq<BFloat16> for BFloat16
source§impl PartialOrd<BFloat16> for BFloat16
impl PartialOrd<BFloat16> for BFloat16
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TensorType for BFloat16
impl TensorType for BFloat16
impl Copy for BFloat16
Auto Trait Implementations§
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> ExprImpl<T> for Twhere
T: TensorType,
impl<T> ExprImpl<T> for Twhere T: TensorType,
source§fn children(&self) -> Vec<Box<dyn AnyExpr + 'static, Global>, Global>
fn children(&self) -> Vec<Box<dyn AnyExpr + 'static, Global>, Global>
Returns the child expressions. Read more
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.