Struct google_api_proto::google::cloud::aiplatform::v1beta1::Tensor
source · pub struct Tensor {Show 14 fields
pub dtype: i32,
pub shape: Vec<i64>,
pub bool_val: Vec<bool>,
pub string_val: Vec<String>,
pub bytes_val: Vec<Bytes>,
pub float_val: Vec<f32>,
pub double_val: Vec<f64>,
pub int_val: Vec<i32>,
pub int64_val: Vec<i64>,
pub uint_val: Vec<u32>,
pub uint64_val: Vec<u64>,
pub list_val: Vec<Tensor>,
pub struct_val: BTreeMap<String, Tensor>,
pub tensor_val: Bytes,
}
Expand description
A tensor value type.
Fields§
§dtype: i32
The data type of tensor.
shape: Vec<i64>
Shape of the tensor.
bool_val: Vec<bool>
Type specific representations that make it easy to create tensor protos in all languages. Only the representation corresponding to “dtype” can be set. The values hold the flattened representation of the tensor in row major order.
[BOOL][google.aiplatform.master.Tensor.DataType.BOOL]
string_val: Vec<String>
[STRING][google.aiplatform.master.Tensor.DataType.STRING]
bytes_val: Vec<Bytes>
[STRING][google.aiplatform.master.Tensor.DataType.STRING]
float_val: Vec<f32>
[FLOAT][google.aiplatform.master.Tensor.DataType.FLOAT]
double_val: Vec<f64>
[DOUBLE][google.aiplatform.master.Tensor.DataType.DOUBLE]
int_val: Vec<i32>
[INT_8][google.aiplatform.master.Tensor.DataType.INT8] [INT_16][google.aiplatform.master.Tensor.DataType.INT16] [INT_32][google.aiplatform.master.Tensor.DataType.INT32]
int64_val: Vec<i64>
[INT64][google.aiplatform.master.Tensor.DataType.INT64]
uint_val: Vec<u32>
[UINT8][google.aiplatform.master.Tensor.DataType.UINT8] [UINT16][google.aiplatform.master.Tensor.DataType.UINT16] [UINT32][google.aiplatform.master.Tensor.DataType.UINT32]
uint64_val: Vec<u64>
[UINT64][google.aiplatform.master.Tensor.DataType.UINT64]
list_val: Vec<Tensor>
A list of tensor values.
struct_val: BTreeMap<String, Tensor>
A map of string to tensor.
tensor_val: Bytes
Serialized raw tensor content.
Implementations§
Trait Implementations§
source§impl Message for Tensor
impl Message for Tensor
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
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(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
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(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for Tensor
impl PartialEq for Tensor
impl StructuralPartialEq for Tensor
Auto Trait Implementations§
impl !Freeze for Tensor
impl RefUnwindSafe for Tensor
impl Send for Tensor
impl Sync for Tensor
impl Unpin for Tensor
impl UnwindSafe for Tensor
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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