@sourceacademy/torch
Preparing search index...
unsqueeze
Variable unsqueeze
Const
unsqueeze
:
(
...
args
:
ArgumentType
[]
)
=>
Tensor
= ...
Adds a dimension of size 1 to the input tensor at the given position.
Type Declaration
(
...
args
:
ArgumentType
[]
)
:
Tensor
Parameters
...
args
:
ArgumentType
[]
Returns
Tensor
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@sourceacademy/torch
Loading...
Adds a dimension of size 1 to the input tensor at the given position.