DeepLearning/Tensor/Unstack
unstack a Tensor
Calling Sequence
Parameters
Options
Description
Examples
Compatibility
Unstack(x,axis,opts)
x
-
Tensor
axis
integer
opts
zero or more options as specified below
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.
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.
with⁡DeepLearning:
v≔Constant⁡−35.0,65.0,41.0,67.2
v≔DeepLearning TensorShape: [4]Data Type: float[8]
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]
m≔Constant⁡−92.1,−31.3,67.3|56.2,65.3,98.7
m≔DeepLearning TensorShape: [3, 2]Data Type: float[8]
Unstack⁡m,1
DeepLearning TensorShape: [2]Data Type: float[8],DeepLearning TensorShape: [2]Data Type: float[8],DeepLearning TensorShape: [2]Data Type: float[8]
Unstack⁡m,2
DeepLearning TensorShape: [3]Data Type: float[8],DeepLearning TensorShape: [3]Data Type: float[8]
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
Download Help Document