DeepLearning/Tensor/Rank - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : DeepLearning Package : Tensors : Query Properties of Tensors : DeepLearning/Tensor/Rank

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 TensorName: Const:0Shape: [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