- 3.13.0 (latest)
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.0
- 3.3.0
- 3.2.0
- 3.1.0
- 3.0.0
- 2.28.0
- 2.27.0
- 2.26.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.0
- 2.2.0
- 2.1.0
- 2.0.0
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.0
- 1.0.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.
Namespace
Google.Cloud.AIPlatform.V1Assembly
Google.Cloud.AIPlatform.V1.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 |
RepeatedFieldSystem.UInt64 |
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 |