Unstack - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

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

> 

with⁡DeepLearning:

> 

v≔Constant⁡−35.0,65.0,41.0,67.2

v≔DeepLearning TensorShape: [4]Data Type: float[8]

(1)
> 

Unstack⁡v,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)
> 

m≔Constant⁡−92.1,−31.3,67.3|56.2,65.3,98.7

m≔DeepLearning TensorShape: [3, 2]Data Type: float[8]

(3)
> 

Unstack⁡m,1

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

(4)
> 

Unstack⁡m,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