DeepLearning/Tensor/Rank
get rank of a Tensor
DeepLearning/Tensor/Shape
get shape of a Tensor
Calling Sequence
Parameters
Description
Examples
Compatibility
Rank(t)
Shape(t)
t
-
Tensor
The Rank(t) command returns an integer describing the rank of Tensor t.
The Shape(t) command returns a list describing the structure of the Tensor t.
with⁡DeepLearning:
t≔Constant⁡−55.,−70.,−67.,13.,77.,−58.
t≔DeepLearning TensorShape: [6, 1]Data Type: float[8]
Rank⁡t
2
Shape⁡t
6,1
The DeepLearning/Tensor/Rank and DeepLearning/Tensor/Shape commands were introduced in Maple 2018.
For more information on Maple 2018 changes, see Updates in Maple 2018.
See Also
DeepLearning Overview
Download Help Document