Rank - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


DeepLearning/Tensor/Rank

get rank of a Tensor

DeepLearning/Tensor/Shape

get shape of a Tensor

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

Rank(t)

Shape(t)

Parameters

t

-

Tensor

Description

• 

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.

Examples

withDeepLearning:

tConstant55.,70.,67.,13.,77.,58.

tDeepLearning TensorShape: [6, 1]Data Type: float[8]

(1)

Rankt

2

(2)

Shapet

6,1

(3)

Compatibility

• 

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

Tensor