Learn R Programming

rTorch (version 0.4.2)

one_tensor_op: One tensor operation

Description

One tensor operation

Usage

one_tensor_op(x)

# S3 method for torch.Tensor exp(x)

Arguments

x

tensor

Methods (by class)

  • torch.Tensor: Exponential of a tensor

Examples

Run this code
# NOT RUN {
A <- torch$ones(c(60000L, 1L, 28L, 28L))
dim(A)
# }

Run the code above in your browser using DataLab