TensorShape
class TensorShape
Content copied to clipboard
Representation of the tensor shape class with helper methods.
Constructors
TensorShape
Link copied to clipboard
Creates a new TensorShape
with the given dimensions.
TensorShape
Link copied to clipboard
Creates a new TensorShape
with the given dimensions.
TensorShape
Link copied to clipboard
fun TensorShape()
Content copied to clipboard
Types
Functions
almostEqual
Link copied to clipboard
Check the fact that two shapes has the same values at the same dimensions except one with index except.
assertKnown
Link copied to clipboard
Throw an exception if dimension i is unknown.
clone
Link copied to clipboard
Makes a copy of TensorShape object.
concatenate
Link copied to clipboard
Augment this TensorShape by appending more dimensions to it.
numElements
Link copied to clipboard
Returns amount of elements in Tensor with the given shape.
replace
Link copied to clipboard
Replace dimension i with a new dimension size.
replaceFirst
Link copied to clipboard
Replace the first dimension with a new dimension size.
replaceLast
Link copied to clipboard
Replace the last dimension with a new dimension size.