pub struct InferTensorContents {
pub bool_contents: Vec<bool>,
pub int_contents: Vec<i32>,
pub int64_contents: Vec<i64>,
pub uint_contents: Vec<u32>,
pub uint64_contents: Vec<u64>,
pub fp32_contents: Vec<f32>,
pub fp64_contents: Vec<f64>,
pub bytes_contents: Vec<Vec<u8>>,
}
Expand description
@@ @@.. cpp:var:: message InferTensorContents @@ @@ The data contained in a tensor represented by the repeated type @@ that matches the tensor’s data type. Protobuf oneof is not used @@ because oneofs cannot contain repeated fields. @@
Fields§
§bool_contents: Vec<bool>
@@ @@ .. cpp:var:: bool bool_contents (repeated) @@ @@ Representation for BOOL data type. The size must match what is @@ expected by the tensor’s shape. The contents must be the flattened, @@ one-dimensional, row-major order of the tensor elements. @@
int_contents: Vec<i32>
@@ @@ .. cpp:var:: int32 int_contents (repeated) @@ @@ Representation for INT8, INT16, and INT32 data types. The size @@ must match what is expected by the tensor’s shape. The contents @@ must be the flattened, one-dimensional, row-major order of the @@ tensor elements. @@
int64_contents: Vec<i64>
@@ @@ .. cpp:var:: int64 int64_contents (repeated) @@ @@ Representation for INT64 data types. The size must match what @@ is expected by the tensor’s shape. The contents must be the @@ flattened, one-dimensional, row-major order of the tensor elements. @@
uint_contents: Vec<u32>
@@ @@ .. cpp:var:: uint32 uint_contents (repeated) @@ @@ Representation for UINT8, UINT16, and UINT32 data types. The size @@ must match what is expected by the tensor’s shape. The contents @@ must be the flattened, one-dimensional, row-major order of the @@ tensor elements. @@
uint64_contents: Vec<u64>
@@ @@ .. cpp:var:: uint64 uint64_contents (repeated) @@ @@ Representation for UINT64 data types. The size must match what @@ is expected by the tensor’s shape. The contents must be the @@ flattened, one-dimensional, row-major order of the tensor elements. @@
fp32_contents: Vec<f32>
@@ @@ .. cpp:var:: float fp32_contents (repeated) @@ @@ Representation for FP32 data type. The size must match what is @@ expected by the tensor’s shape. The contents must be the flattened, @@ one-dimensional, row-major order of the tensor elements. @@
fp64_contents: Vec<f64>
@@ @@ .. cpp:var:: double fp64_contents (repeated) @@ @@ Representation for FP64 data type. The size must match what is @@ expected by the tensor’s shape. The contents must be the flattened, @@ one-dimensional, row-major order of the tensor elements. @@
bytes_contents: Vec<Vec<u8>>
@@ @@ .. cpp:var:: bytes bytes_contents (repeated) @@ @@ Representation for BYTES data type. The size must match what is @@ expected by the tensor’s shape. The contents must be the flattened, @@ one-dimensional, row-major order of the tensor elements. @@
Trait Implementations§
Source§impl Clone for InferTensorContents
impl Clone for InferTensorContents
Source§fn clone(&self) -> InferTensorContents
fn clone(&self) -> InferTensorContents
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for InferTensorContents
impl Debug for InferTensorContents
Source§impl Default for InferTensorContents
impl Default for InferTensorContents
Source§impl Message for InferTensorContents
impl Message for InferTensorContents
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.Source§impl PartialEq for InferTensorContents
impl PartialEq for InferTensorContents
impl StructuralPartialEq for InferTensorContents
Auto Trait Implementations§
impl Freeze for InferTensorContents
impl RefUnwindSafe for InferTensorContents
impl Send for InferTensorContents
impl Sync for InferTensorContents
impl Unpin for InferTensorContents
impl UnwindSafe for InferTensorContents
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request