torch_atleast_1d: Atleast_1d

Description Usage Arguments Examples

View source: R/wrapers.R

Description

Returns a 1-dimensional view of each input tensor with zero dimensions. Input tensors with one or more dimensions are returned as-is.

Usage

1

Arguments

self

(Tensor or list of Tensors)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12

torch documentation built on Oct. 7, 2021, 9:22 a.m.