Constructor Tensor
Tensor(TensorShape, ITensorData, ITensorAllocator)
Instantiates and returns a Tensor with the specified shape
, an ITensorData
data
and an ITensorAllocator allocator
.
Declaration
protected Tensor(TensorShape shape, ITensorData data = null, ITensorAllocator allocator = null)
Parameters
Type | Name | Description |
---|---|---|
TensorShape | shape | The shape of the tensor. |
ITensorData | data | The optional tensor data. |
ITensorAllocator | allocator | The allocator that was used to instantiate the tensor. |