Struct TensorInfo
#[repr(C)]pub struct TensorInfo {
pub data_type: u32,
pub rank: u32,
pub dimensions: [i32; 6],
pub byte_len: u32,
pub quantization_axis: i32,
pub quantization_count: u32,
}Expand description
Metadata returned by GET_INPUT_INFO and GET_OUTPUT_INFO.
data_type uses the TensorFlow Lite tensor type value. dimensions contains
the first rank dimensions; rank cannot exceed MAX_TENSOR_RANK.
Fields§
§data_type: u32§rank: u32§dimensions: [i32; 6]§byte_len: u32§quantization_axis: i32-1 when the tensor is not quantized.
quantization_count: u32Number of quantization entries, zero when not quantized.
Trait Implementations§
§impl Clone for TensorInfo
impl Clone for TensorInfo
§fn clone(&self) -> TensorInfo
fn clone(&self) -> TensorInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for TensorInfo
impl Debug for TensorInfo
§impl Default for TensorInfo
impl Default for TensorInfo
§fn default() -> TensorInfo
fn default() -> TensorInfo
Returns the “default value” for a type. Read more
§impl PartialEq for TensorInfo
impl PartialEq for TensorInfo
impl Copy for TensorInfo
impl Eq for TensorInfo
impl PlainData for TensorInfo
impl StructuralPartialEq for TensorInfo
Auto Trait Implementations§
impl Freeze for TensorInfo
impl RefUnwindSafe for TensorInfo
impl Send for TensorInfo
impl Sync for TensorInfo
impl Unpin for TensorInfo
impl UnsafeUnpin 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