Struct tensorflow::TensorInfo
source · pub struct TensorInfo { /* private fields */ }
Expand description
Information about a Tensor necessary for feeding or retrieval.
Implementations§
source§impl TensorInfo
impl TensorInfo
sourcepub fn new(dtype: DataType, shape: Shape, name: OutputName) -> TensorInfo
pub fn new(dtype: DataType, shape: Shape, name: OutputName) -> TensorInfo
Creates a TensorInfo.
sourcepub fn name(&self) -> &OutputName
pub fn name(&self) -> &OutputName
Returns the name of the tensor.
Trait Implementations§
source§impl Clone for TensorInfo
impl Clone for TensorInfo
source§fn clone(&self) -> TensorInfo
fn clone(&self) -> TensorInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TensorInfo
impl Debug for TensorInfo
source§impl Default for TensorInfo
impl Default for TensorInfo
source§fn default() -> TensorInfo
fn default() -> TensorInfo
Returns the “default value” for a type. Read more
source§impl PartialEq<TensorInfo> for TensorInfo
impl PartialEq<TensorInfo> for TensorInfo
source§fn eq(&self, other: &TensorInfo) -> bool
fn eq(&self, other: &TensorInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for TensorInfo
impl StructuralEq for TensorInfo
impl StructuralPartialEq for TensorInfo
Auto Trait Implementations§
impl RefUnwindSafe for TensorInfo
impl Send for TensorInfo
impl Sync for TensorInfo
impl Unpin for TensorInfo
impl UnwindSafe for TensorInfo
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