Unstack - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


DeepLearning/Tensor/Unstack

unstack a Tensor

 

Calling Sequence

Parameters

Options

Description

Examples

Compatibility

Calling Sequence

Unstack(x,axis,opts)

Parameters

x

-

Tensor

axis

-

integer

opts

-

zero or more options as specified below

Options

• 

name=string

The value of option name specifies an optional name for this Tensor, to be displayed in output and when visualizing the dataflow graph.

Description

• 

The Unstack(x,axis,opts) unpacks Tensors from x by splitting across the dimension specified by axis. The result is a list of Tensors corresponding to the slices of the original Tensor from the specified dimension.

Examples

withDeepLearning:

vConstant35.0,65.0,41.0,67.2

vDeepLearning TensorShape: [4]Data Type: float[8]

(1)

Unstackv,1

DeepLearning TensorShape: []Data Type: float[8],DeepLearning TensorShape: []Data Type: float[8],DeepLearning TensorShape: []Data Type: float[8],DeepLearning TensorShape: []Data Type: float[8]

(2)

mConstant92.1,31.3,67.3|56.2,65.3,98.7

mDeepLearning TensorShape: [3, 2]Data Type: float[8]

(3)

Unstackm,1

DeepLearning TensorShape: [2]Data Type: float[8],DeepLearning TensorShape: [2]Data Type: float[8],DeepLearning TensorShape: [2]Data Type: float[8]

(4)

Unstackm,2

DeepLearning TensorShape: [3]Data Type: float[8],DeepLearning TensorShape: [3]Data Type: float[8]

(5)

Compatibility

• 

The DeepLearning/Tensor/Unstack command was introduced in Maple 2019.

• 

For more information on Maple 2019 changes, see Updates in Maple 2019.

See Also

DeepLearning Overview

LinearAlgebra

Tensor