Cloud AI Platform v1 API - Class Tensor (2.18.0)

public sealed class Tensor : IMessage<Tensor>, IEquatable<Tensor>, IDeepCloneable<Tensor>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud AI Platform v1 API class Tensor.

A tensor value type.

Inheritance

object > Tensor

Namespace

Google.Cloud.AIPlatform.V1

Assembly

Google.Cloud.AIPlatform.V1.dll

Constructors

Tensor()

public Tensor()

Tensor(Tensor)

public Tensor(Tensor other)
Parameter
NameDescription
otherTensor

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
TypeDescription
RepeatedFieldbool

BytesVal

public RepeatedField<ByteString> BytesVal { get; }

[STRING][google.aiplatform.master.Tensor.DataType.STRING]

Property Value
TypeDescription
RepeatedFieldByteString

DoubleVal

public RepeatedField<double> DoubleVal { get; }

[DOUBLE][google.aiplatform.master.Tensor.DataType.DOUBLE]

Property Value
TypeDescription
RepeatedFielddouble

Dtype

public Tensor.Types.DataType Dtype { get; set; }

The data type of tensor.

Property Value
TypeDescription
TensorTypesDataType

FloatVal

public RepeatedField<float> FloatVal { get; }

[FLOAT][google.aiplatform.master.Tensor.DataType.FLOAT]

Property Value
TypeDescription
RepeatedFieldfloat

Int64Val

public RepeatedField<long> Int64Val { get; }

[INT64][google.aiplatform.master.Tensor.DataType.INT64]

Property Value
TypeDescription
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
TypeDescription
RepeatedFieldint

ListVal

public RepeatedField<Tensor> ListVal { get; }

A list of tensor values.

Property Value
TypeDescription
RepeatedFieldTensor

Shape

public RepeatedField<long> Shape { get; }

Shape of the tensor.

Property Value
TypeDescription
RepeatedFieldlong

StringVal

public RepeatedField<string> StringVal { get; }

[STRING][google.aiplatform.master.Tensor.DataType.STRING]

Property Value
TypeDescription
RepeatedFieldstring

StructVal

public MapField<string, Tensor> StructVal { get; }

A map of string to tensor.

Property Value
TypeDescription
MapFieldstringTensor

TensorVal

public ByteString TensorVal { get; set; }

Serialized raw tensor content.

Property Value
TypeDescription
ByteString

Uint64Val

public RepeatedField<ulong> Uint64Val { get; }

[UINT64][google.aiplatform.master.Tensor.DataType.UINT64]

Property Value
TypeDescription
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
TypeDescription
RepeatedFielduint