Struct tensorflow::TensorInfo
source · [−]pub struct TensorInfo { /* private fields */ }
Expand description
Information about a Tensor necessary for feeding or retrieval.
Implementations
sourceimpl 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
sourceimpl Clone for TensorInfo
impl Clone for TensorInfo
sourcefn clone(&self) -> TensorInfo
fn clone(&self) -> TensorInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TensorInfo
impl Debug for TensorInfo
sourceimpl Default for TensorInfo
impl Default for TensorInfo
sourcefn default() -> TensorInfo
fn default() -> TensorInfo
Returns the “default value” for a type. Read more
sourceimpl PartialEq<TensorInfo> for TensorInfo
impl PartialEq<TensorInfo> for TensorInfo
sourcefn 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 ==
. Read more
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more