Constructor SharedArrayTensorData
SharedArrayTensorData(TensorShape, Array)
Initializes and returns an instance of SharedArrayTensorData
with a given array of data.
Declaration
public SharedArrayTensorData(TensorShape shape, Array data)
Parameters
Type | Name | Description |
---|---|---|
TensorShape | shape | The shape of the tensor data. |
Array | data | The data to use as backing data. |
SharedArrayTensorData(TensorShape, NativeTensorArray, int)
Initializes and returns an instance of SharedArrayTensorData
with a given NativeTensorArray
of data.
Declaration
public SharedArrayTensorData(TensorShape shape, NativeTensorArray data, int offset = 0)
Parameters
Type | Name | Description |
---|---|---|
TensorShape | shape | The shape of the tensor data. |
NativeTensorArray | data | The allocated data to use as backing data. |
int | offset | The integer offset to use for the data. |