Enum tfdeploy::ops::Input
[−]
[src]
pub enum Input { Owned(Matrix), Shared(Arc<Matrix>), }
Variants
Owned(Matrix)
Methods
impl Input
[src]
Methods from Deref<Target = Matrix>
pub fn to_pb(&self) -> Result<TensorProto>
[src]
pub fn shape(&self) -> &[usize]
[src]
pub fn datatype(&self) -> DataType
[src]
pub fn partial_dump(&self, _single_line: bool) -> Result<String>
[src]
pub fn close_enough(&self, other: &Self) -> bool
[src]
Trait Implementations
impl Debug for Input
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for Input
[src]
fn clone(&self) -> Input
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<M> From<M> for Input where
Matrix: From<M>,
[src]
Matrix: From<M>,
impl From<Arc<Matrix>> for Input
[src]
impl Deref for Input
[src]
type Target = Matrix
The resulting type after dereferencing.
fn deref(&self) -> &Matrix
[src]
Dereferences the value.