pub struct GoogleCloudAiplatformV1Tensor {Show 14 fields
pub double_val: Option<Vec<f64>>,
pub shape: Option<Vec<i64>>,
pub int_val: Option<Vec<i32>>,
pub uint64_val: Option<Vec<u64>>,
pub tensor_val: Option<Vec<u8>>,
pub bytes_val: Option<Vec<Vec<u8>>>,
pub string_val: Option<Vec<String>>,
pub float_val: Option<Vec<f32>>,
pub int64_val: Option<Vec<i64>>,
pub dtype: Option<String>,
pub list_val: Option<Vec<GoogleCloudAiplatformV1Tensor>>,
pub bool_val: Option<Vec<bool>>,
pub uint_val: Option<Vec<u32>>,
pub struct_val: Option<HashMap<String, GoogleCloudAiplatformV1Tensor>>,
}Expand description
A tensor value type.
This type is not used in any activity, and only used as part of another schema.
Fields§
§double_val: Option<Vec<f64>>DOUBLE
shape: Option<Vec<i64>>Shape of the tensor.
int_val: Option<Vec<i32>>INT_8 INT_16 INT_32
uint64_val: Option<Vec<u64>>UINT64
tensor_val: Option<Vec<u8>>Serialized raw tensor content.
bytes_val: Option<Vec<Vec<u8>>>STRING
string_val: Option<Vec<String>>STRING
float_val: Option<Vec<f32>>FLOAT
int64_val: Option<Vec<i64>>INT64
dtype: Option<String>The data type of tensor.
list_val: Option<Vec<GoogleCloudAiplatformV1Tensor>>A list of tensor values.
bool_val: Option<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
uint_val: Option<Vec<u32>>UINT8 UINT16 UINT32
struct_val: Option<HashMap<String, GoogleCloudAiplatformV1Tensor>>A map of string to tensor.
Trait Implementations§
Source§impl Clone for GoogleCloudAiplatformV1Tensor
impl Clone for GoogleCloudAiplatformV1Tensor
Source§fn clone(&self) -> GoogleCloudAiplatformV1Tensor
fn clone(&self) -> GoogleCloudAiplatformV1Tensor
Returns a duplicate 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 Default for GoogleCloudAiplatformV1Tensor
impl Default for GoogleCloudAiplatformV1Tensor
Source§fn default() -> GoogleCloudAiplatformV1Tensor
fn default() -> GoogleCloudAiplatformV1Tensor
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GoogleCloudAiplatformV1Tensor
impl<'de> Deserialize<'de> for GoogleCloudAiplatformV1Tensor
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Part for GoogleCloudAiplatformV1Tensor
Auto Trait Implementations§
impl Freeze for GoogleCloudAiplatformV1Tensor
impl RefUnwindSafe for GoogleCloudAiplatformV1Tensor
impl Send for GoogleCloudAiplatformV1Tensor
impl Sync for GoogleCloudAiplatformV1Tensor
impl Unpin for GoogleCloudAiplatformV1Tensor
impl UnwindSafe for GoogleCloudAiplatformV1Tensor
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
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more