public sealed class Tensor : IMessage<Tensor>, IEquatable<Tensor>, IDeepCloneable<Tensor>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud AI Platform v1beta1 API class Tensor.
A tensor value type.
Namespace
Google.Cloud.AIPlatform.V1Beta1Assembly
Google.Cloud.AIPlatform.V1Beta1.dll
Constructors
Tensor()
public Tensor()
Tensor(Tensor)
public Tensor(Tensor other)
Parameter | |
---|---|
Name | Description |
other |
Tensor |
Properties
BoolVal
public RepeatedField<bool> BoolVal { get; }
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]
Property Value | |
---|---|
Type | Description |
RepeatedFieldbool |
BytesVal
public RepeatedField<ByteString> BytesVal { get; }
[STRING][google.aiplatform.master.Tensor.DataType.STRING]
Property Value | |
---|---|
Type | Description |
RepeatedFieldByteString |
DoubleVal
public RepeatedField<double> DoubleVal { get; }
[DOUBLE][google.aiplatform.master.Tensor.DataType.DOUBLE]
Property Value | |
---|---|
Type | Description |
RepeatedFielddouble |
Dtype
public Tensor.Types.DataType Dtype { get; set; }
The data type of tensor.
Property Value | |
---|---|
Type | Description |
TensorTypesDataType |
FloatVal
public RepeatedField<float> FloatVal { get; }
[FLOAT][google.aiplatform.master.Tensor.DataType.FLOAT]
Property Value | |
---|---|
Type | Description |
RepeatedFieldfloat |
Int64Val
public RepeatedField<long> Int64Val { get; }
[INT64][google.aiplatform.master.Tensor.DataType.INT64]
Property Value | |
---|---|
Type | Description |
RepeatedFieldlong |
IntVal
public RepeatedField<int> IntVal { get; }
[INT_8][google.aiplatform.master.Tensor.DataType.INT8] [INT_16][google.aiplatform.master.Tensor.DataType.INT16] [INT_32][google.aiplatform.master.Tensor.DataType.INT32]
Property Value | |
---|---|
Type | Description |
RepeatedFieldint |
ListVal
public RepeatedField<Tensor> ListVal { get; }
A list of tensor values.
Property Value | |
---|---|
Type | Description |
RepeatedFieldTensor |
Shape
public RepeatedField<long> Shape { get; }
Shape of the tensor.
Property Value | |
---|---|
Type | Description |
RepeatedFieldlong |
StringVal
public RepeatedField<string> StringVal { get; }
[STRING][google.aiplatform.master.Tensor.DataType.STRING]
Property Value | |
---|---|
Type | Description |
RepeatedFieldstring |
StructVal
public MapField<string, Tensor> StructVal { get; }
A map of string to tensor.
Property Value | |
---|---|
Type | Description |
MapFieldstringTensor |
TensorVal
public ByteString TensorVal { get; set; }
Serialized raw tensor content.
Property Value | |
---|---|
Type | Description |
ByteString |
Uint64Val
public RepeatedField<ulong> Uint64Val { get; }
[UINT64][google.aiplatform.master.Tensor.DataType.UINT64]
Property Value | |
---|---|
Type | Description |
RepeatedFieldulong |
UintVal
public RepeatedField<uint> UintVal { get; }
[UINT8][google.aiplatform.master.Tensor.DataType.UINT8] [UINT16][google.aiplatform.master.Tensor.DataType.UINT16] [UINT32][google.aiplatform.master.Tensor.DataType.UINT32]
Property Value | |
---|---|
Type | Description |
RepeatedFieldSystem.UInt32 |