Constructor TensorNDIterator
TensorNDIterator(TensorNDIterator)
Returns a copy of another TensorNDIterator
.
Declaration
public TensorNDIterator(TensorNDIterator other)
Parameters
Type | Name | Description |
---|---|---|
TensorNDIterator | other | The iterator to copy. |
TensorNDIterator(TensorShape)
Initializes and returns an instance of TensorNDIterator
with a given shape.
Declaration
public TensorNDIterator(TensorShape shape)
Parameters
Type | Name | Description |
---|---|---|
TensorShape | shape | The shape of the iterator. |
TensorNDIterator(TensorShape, int)
Initializes and returns an instance of TensorNDIterator
with a given shape, and uses a given index in the flattened 1D version of the shape.
Declaration
public TensorNDIterator(TensorShape shape, int index)
Parameters
Type | Name | Description |
---|---|---|
TensorShape | shape | The shape of the iterator. |
int | index | The index in the flattened shape. |