pub enum InputTensor<'a> {
F32(Cow<'a, [f32]>),
I32(Cow<'a, [i32]>),
I64(Cow<'a, [i64]>),
U8(Cow<'a, [u8]>),
}
Variants§
Trait Implementations§
Source§impl<'a> Clone for InputTensor<'a>
impl<'a> Clone for InputTensor<'a>
Source§fn clone(&self) -> InputTensor<'a>
fn clone(&self) -> InputTensor<'a>
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<'a> From<&'a [f32]> for InputTensor<'a>
impl<'a> From<&'a [f32]> for InputTensor<'a>
Source§impl<'a> From<&'a [i32]> for InputTensor<'a>
impl<'a> From<&'a [i32]> for InputTensor<'a>
Source§impl<'a> From<&'a [i64]> for InputTensor<'a>
impl<'a> From<&'a [i64]> for InputTensor<'a>
Source§impl<'a> From<&InputTensor<'a>> for OutputTensor
impl<'a> From<&InputTensor<'a>> for OutputTensor
Source§fn from(input: &InputTensor<'a>) -> Self
fn from(input: &InputTensor<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> TryFrom<&'a TensorProto> for InputTensor<'a>
impl<'a> TryFrom<&'a TensorProto> for InputTensor<'a>
Source§type Error = DataTypeError
type Error = DataTypeError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl<'a> Freeze for InputTensor<'a>
impl<'a> RefUnwindSafe for InputTensor<'a>
impl<'a> Send for InputTensor<'a>
impl<'a> Sync for InputTensor<'a>
impl<'a> Unpin for InputTensor<'a>
impl<'a> UnwindSafe for InputTensor<'a>
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