Learn R Programming

⚠️There's a newer version (0.14.2) of this package.Take me there.

torch

Installation

torch can be installed from CRAN with:

install.packages("torch")

You can also install the development version with:

remotes::install_github("mlverse/torch")

At the first package load additional software will be installed.

Installation with Docker

If you would like to install with Docker, please read following document.

Examples

You can create torch tensors from R objects with the torch_tensor function and convert them back to R objects with as_array.

library(torch)
x <- array(runif(8), dim = c(2, 2, 2))
y <- torch_tensor(x, dtype = torch_float64())
y
#> torch_tensor
#> (1,.,.) = 
#>   0.2196  0.9240
#>   0.2313  0.9342
#> 
#> (2,.,.) = 
#>   0.5492  0.6236
#>   0.6080  0.8861
#> [ CPUDoubleType{2,2,2} ]
identical(x, as_array(y))
#> [1] TRUE

Simple Autograd Example

In the following snippet we let torch, using the autograd feature, calculate the derivatives:

x <- torch_tensor(1, requires_grad = TRUE)
w <- torch_tensor(2, requires_grad = TRUE)
b <- torch_tensor(3, requires_grad = TRUE)
y <- w * x + b
y$backward()
x$grad
#> torch_tensor
#>  2
#> [ CPUFloatType{1} ]
w$grad
#> torch_tensor
#>  1
#> [ CPUFloatType{1} ]
b$grad
#> torch_tensor
#>  1
#> [ CPUFloatType{1} ]

Contributing

No matter your current skills it’s possible to contribute to torch development. See the contributing guide for more information.

Copy Link

Version

Install

install.packages('torch')

Monthly Downloads

7,962

Version

0.3.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Daniel Falbel

Last Published

April 28th, 2021

Functions in torch (0.3.0)

autograd_set_grad_mode

Set grad mode
Distribution

Generic R6 class representing distributions
AutogradContext

Class representing the context.
autograd_grad

Computes and returns the sum of gradients of outputs w.r.t. the inputs.
as_array

Converts to array
Constraint

Abstract base class for constraints.
autograd_backward

Computes the sum of gradients of given tensors w.r.t. graph leaves.
backends_mkl_is_available

MKL is available
backends_mkldnn_is_available

MKLDNN is available
dataset

Helper function to create an R6 class that inherits from the abstract Dataset class
dataset_subset

Dataset Subset
distr_gamma

Creates a Gamma distribution parameterized by shape concentration and rate.
is_nn_module

Checks if the object is an nn_module
distr_chi2

Creates a Chi2 distribution parameterized by shape parameter df. This is exactly equivalent to distr_gamma(alpha=0.5*df, beta=0.5)
nn_adaptive_max_pool2d

Applies a 2D adaptive max pooling over an input signal composed of several input planes.
is_nn_buffer

Checks if the object is a nn_buffer
dataloader_make_iter

Creates an iterator from a DataLoader
cuda_current_device

Returns the index of a currently selected device.
nn_adaptive_max_pool3d

Applies a 3D adaptive max pooling over an input signal composed of several input planes.
dataloader

Data loader. Combines a dataset and a sampler, and provides single- or multi-process iterators over the dataset.
cuda_is_available

Returns a bool indicating if CUDA is currently available.
is_torch_dtype

Check if object is a torch data type
distr_poisson

Creates a Poisson distribution parameterized by rate, the rate parameter.
is_torch_device

Checks if object is a device
distr_normal

Creates a normal (also called Gaussian) distribution parameterized by loc and scale.
nn_batch_norm2d

BatchNorm2D
dataloader_next

Get the next element of a dataloader iterator
nn_init_xavier_uniform_

Xavier uniform initialization
nn_group_norm

Group normalization
nn_cross_entropy_loss

CrossEntropyLoss module
nn_batch_norm3d

BatchNorm3D
nn_cosine_embedding_loss

Cosine embedding loss
nn_init_xavier_normal_

Xavier normal initialization
lr_one_cycle

Once cycle learning rate
nn_hinge_embedding_loss

Hinge embedding loss
nn_gru

Applies a multi-layer gated recurrent unit (GRU) RNN to an input sequence.
nn_identity

Identity module
autograd_function

Records operation history and defines formulas for differentiating ops.
torch_set_default_dtype

Gets and sets the default floating point dtype.
broadcast_all

Given a list of values (possibly containing numbers), returns a list where each value is broadcasted based on the following rules:
distr_bernoulli

Creates a Bernoulli distribution parameterized by probs or logits (but not both). Samples are binary (0 or 1). They take the value 1 with probability p and 0 with probability 1 - p.
install_torch_from_file

Install Torch from files
is_dataloader

Checks if the object is a dataloader
jit_load

Loads a script_function or script_module previously saved with jit_save
backends_openmp_is_available

OpenMP is available
jit_save

Saves a script_function to a path
cuda_device_count

Returns the number of GPUs available.
nn_init_calculate_gain

Calculate gain
nn_init_trunc_normal_

Truncated normal initialization
nn_ctc_loss

The Connectionist Temporal Classification loss.
nn_celu

CELU module
lr_scheduler

Creates learning rate schedulers
nn_contrib_sparsemax

Sparsemax activation
nn_dropout

Dropout module
nn_init_uniform_

Uniform initialization
nn_init_constant_

Constant initialization
nn_adaptive_avg_pool2d

Applies a 2D adaptive average pooling over an input signal composed of several input planes.
get_install_libs_url

List of files to download
nn_lp_pool1d

Applies a 1D power-average pooling over an input signal composed of several input planes.
nn_lp_pool2d

Applies a 2D power-average pooling over an input signal composed of several input planes.
nn_mse_loss

MSE loss
enumerate

Enumerate an iterator
nn_multi_margin_loss

Multi margin loss
lr_lambda

Sets the learning rate of each parameter group to the initial lr times a given function. When last_epoch=-1, sets initial lr as lr.
is_nn_parameter

Checks if an object is a nn_parameter
enumerate.dataloader

Enumerate an iterator
is_optimizer

Checks if the object is a torch optimizer
lr_multiplicative

Multiply the learning rate of each parameter group by the factor given in the specified function. When last_epoch=-1, sets initial lr as lr.
nn_log_sigmoid

LogSigmoid module
nn_log_softmax

LogSoftmax module
install_torch

Install Torch
nn_glu

GLU module
nn_adaptive_avg_pool3d

Applies a 3D adaptive average pooling over an input signal composed of several input planes.
nn_buffer

Creates a nn_buffer
nn_conv2d

Conv2D module
nn_gelu

GELU module
nn_bilinear

Bilinear module
nn_conv1d

Conv1D module
nn_max_unpool2d

Computes a partial inverse of MaxPool2d.
is_torch_layout

Check if an object is a torch layout.
is_torch_memory_format

Check if an object is a memory format
nn_soft_margin_loss

Soft margin loss
nn_adaptive_avg_pool1d

Applies a 1D adaptive average pooling over an input signal composed of several input planes.
lr_step

Step learning rate decay
nn_avg_pool3d

Applies a 3D average pooling over an input signal composed of several input planes.
nn_utils_rnn_pack_sequence

Packs a list of variable length Tensors
nn_threshold

Threshoold module
nn_softmax

Softmax module
nn_tanhshrink

Tanhshrink module
nn_utils_rnn_pack_padded_sequence

Packs a Tensor containing padded sequences of variable length.
nnf_avg_pool3d

Avg_pool3d
jit_trace

Trace a function and return an executable script_function.
load_state_dict

Load a state dict file
nn_batch_norm1d

BatchNorm1D module
is_torch_qscheme

Checks if an object is a QScheme
nn_init_dirac_

Dirac initialization
nnf_conv_tbc

Conv_tbc
nnf_batch_norm

Batch_norm
nn_adaptive_log_softmax_with_loss

AdaptiveLogSoftmaxWithLoss module
nn_adaptive_max_pool1d

Applies a 1D adaptive max pooling over an input signal composed of several input planes.
nnf_conv_transpose1d

Conv_transpose1d
nnf_dropout

Dropout
nnf_dropout2d

Dropout2d
nn_avg_pool2d

Applies a 2D average pooling over an input signal composed of several input planes.
is_undefined_tensor

Checks if a tensor is undefined
nn_avg_pool1d

Applies a 1D average pooling over an input signal composed of several input planes.
nn_max_unpool3d

Computes a partial inverse of MaxPool3d.
nn_bce_loss

Binary cross entropy loss
nnf_fractional_max_pool3d

Fractional_max_pool3d
nn_embedding

Embedding module
nn_max_pool3d

Applies a 3D max pooling over an input signal composed of several input planes.
nn_elu

ELU module
nn_multilabel_soft_margin_loss

Multi label soft margin loss
nn_max_unpool1d

Computes a partial inverse of MaxPool1d.
nnf_layer_norm

Layer_norm
nnf_gelu

Gelu
nnf_l1_loss

L1_loss
nn_bce_with_logits_loss

BCE with logits loss
nn_nll_loss

Nll loss
nn_conv3d

Conv3D module
nn_init_kaiming_normal_

Kaiming normal initialization
nn_init_eye_

Eye initialization
nn_init_kaiming_uniform_

Kaiming uniform initialization
nnf_max_pool3d

Max_pool3d
nnf_max_unpool1d

Max_unpool1d
nn_init_zeros_

Zeros initialization
nn_kl_div_loss

Kullback-Leibler divergence loss
nn_lstm

Applies a multi-layer long short-term memory (LSTM) RNN to an input sequence.
nn_conv_transpose2d

ConvTranpose2D module
nn_rnn

RNN module
nn_utils_clip_grad_norm_

Clips gradient norm of an iterable of parameters.
nn_conv_transpose3d

ConvTranpose3D module
nn_rrelu

RReLU module
nn_dropout2d

Dropout2D module
nn_conv_transpose1d

ConvTranspose1D
nn_relu

ReLU module
nn_fractional_max_pool2d

Applies a 2D fractional max pooling over an input signal composed of several input planes.
nn_relu6

ReLu6 module
nn_softmax2d

Softmax2d module
nn_dropout3d

Dropout3D module
nn_fractional_max_pool3d

Applies a 3D fractional max pooling over an input signal composed of several input planes.
nn_hardtanh

Hardtanh module
nn_hardswish

Hardswish module
nn_init_normal_

Normal initialization
nn_hardshrink

Hardshwink module
nn_utils_clip_grad_value_

Clips gradient of an iterable of parameters at specified value.
nn_init_ones_

Ones initialization
nnf_mse_loss

Mse_loss
nnf_adaptive_max_pool3d

Adaptive_max_pool3d
nnf_adaptive_max_pool2d

Adaptive_max_pool2d
nnf_binary_cross_entropy_with_logits

Binary_cross_entropy_with_logits
nn_multihead_attention

MultiHead attention
nn_margin_ranking_loss

Margin ranking loss
nn_leaky_relu

LeakyReLU module
nn_init_orthogonal_

Orthogonal initialization
nn_init_sparse_

Sparse initialization
nn_hardsigmoid

Hardsigmoid module
nn_multilabel_margin_loss

Multilabel margin loss
nn_l1_loss

L1 loss
nn_selu

SELU module
nnf_celu

Celu
nn_softmin

Softmin
nn_sequential

A sequential container
nn_module_list

Holds submodules in a list.
nn_layer_norm

Layer normalization
nn_module

Base class for all neural network modules.
nn_triplet_margin_with_distance_loss

Triplet margin with distance loss
nn_triplet_margin_loss

Triplet margin loss
nn_utils_rnn_pad_packed_sequence

Pads a packed batch of variable length sequences.
nnf_linear

Linear
nnf_lp_pool2d

Lp_pool2d
nnf_leaky_relu

Leaky_relu
nn_linear

Linear module
nn_pairwise_distance

Pairwise distance
nn_parameter

Creates an nn_parameter
nnf_multi_head_attention_forward

Multi head attention forward
nn_max_pool2d

MaxPool2D module
nn_max_pool1d

MaxPool1D module
nn_utils_rnn_pad_sequence

Pad a list of variable length Tensors with padding_value
nnf_adaptive_avg_pool1d

Adaptive_avg_pool1d
nnf_adaptive_avg_pool2d

Adaptive_avg_pool2d
nnf_bilinear

Bilinear
nnf_binary_cross_entropy

Binary_cross_entropy
nn_poisson_nll_loss

Poisson NLL loss
nn_prelu

PReLU module
nn_smooth_l1_loss

Smooth L1 loss
nn_softsign

Softsign module
nn_sigmoid

Sigmoid module
nnf_contrib_sparsemax

Sparsemax
nn_softplus

Softplus module
nn_tanh

Tanh module
nnf_dropout3d

Dropout3d
nnf_avg_pool1d

Avg_pool1d
nnf_elu

Elu
nnf_adaptive_avg_pool3d

Adaptive_avg_pool3d
nnf_affine_grid

Affine_grid
nnf_glu

Glu
nnf_adaptive_max_pool1d

Adaptive_max_pool1d
nn_softshrink

Softshrink module
nnf_avg_pool2d

Avg_pool2d
nnf_grid_sample

Grid_sample
nnf_selu

Selu
nnf_rrelu

Rrelu
nnf_tanhshrink

Tanhshrink
nnf_lp_pool1d

Lp_pool1d
nnf_pairwise_distance

Pairwise_distance
nnf_softsign

Softsign
nnf_pad

Pad
nnf_logsigmoid

Logsigmoid
nnf_margin_ranking_loss

Margin_ranking_loss
nnf_softshrink

Softshrink
nnf_alpha_dropout

Alpha_dropout
nnf_conv2d

Conv2d
nnf_conv_transpose2d

Conv_transpose2d
nnf_multi_margin_loss

Multi_margin_loss
nnf_conv_transpose3d

Conv_transpose3d
nnf_embedding

Embedding
nnf_prelu

Prelu
nnf_multilabel_margin_loss

Multilabel_margin_loss
nnf_unfold

Unfold
nnf_softmax

Softmax
nnf_soft_margin_loss

Soft_margin_loss
nnf_poisson_nll_loss

Poisson_nll_loss
nnf_cross_entropy

Cross_entropy
nnf_ctc_loss

Ctc_loss
nnf_hardshrink

Hardshrink
nnf_conv1d

Conv1d
nnf_hardsigmoid

Hardsigmoid
nnf_conv3d

Conv3d
nnf_embedding_bag

Embedding_bag
nnf_fold

Fold
nnf_cosine_embedding_loss

Cosine_embedding_loss
nnf_cosine_similarity

Cosine_similarity
nnf_threshold

Threshold
optim_asgd

Averaged Stochastic Gradient Descent optimizer
optim_lbfgs

LBFGS optimizer
optim_rprop

Implements the resilient backpropagation algorithm.
optim_sgd

SGD optimizer
torch_acosh

Acosh
torch_adaptive_avg_pool1d

Adaptive_avg_pool1d
optim_adadelta

Adadelta optimizer
torch_addcmul

Addcmul
torch_addcdiv

Addcdiv
torch_asin

Asin
nnf_fractional_max_pool2d

Fractional_max_pool2d
nnf_gumbel_softmax

Gumbel_softmax
nnf_kl_div

Kl_div
nnf_interpolate

Interpolate
nnf_group_norm

Group_norm
torch_arctan

Arctan
torch_arctanh

Arctanh
torch_absolute

Absolute
torch_acos

Acos
torch_add

Add
nnf_max_pool1d

Max_pool1d
torch_asinh

Asinh
torch_argmin

Argmin
torch_argmax

Argmax
torch_cat

Cat
nnf_hinge_embedding_loss

Hinge_embedding_loss
torch_addbmm

Addbmm
torch_arccosh

Arccosh
torch_arccos

Arccos
torch_argsort

Argsort
nnf_hardswish

Hardswish
nnf_local_response_norm

Local_response_norm
nnf_hardtanh

Hardtanh
torch_chunk

Chunk
torch_conv_tbc

Conv_tbc
torch_clamp

Clamp
torch_cdist

Cdist
torch_as_strided

As_strided
nnf_instance_norm

Instance_norm
torch_bartlett_window

Bartlett_window
nnf_normalize

Normalize
nnf_log_softmax

Log_softmax
nnf_max_unpool2d

Max_unpool2d
nnf_softplus

Softplus
nnf_pixel_shuffle

Pixel_shuffle
nnf_max_unpool3d

Max_unpool3d
nnf_pdist

Pdist
nnf_softmin

Softmin
nnf_triplet_margin_loss

Triplet_margin_loss
torch_avg_pool1d

Avg_pool1d
torch_baddbmm

Baddbmm
torch_broadcast_tensors

Broadcast_tensors
torch_bernoulli

Bernoulli
torch_cholesky_inverse

Cholesky_inverse
torch_device

Create a Device object
torch_dstack

Dstack
torch_erfc

Erfc
torch_fft_fft

Fft
torch_conv_transpose1d

Conv_transpose1d
torch_diag

Diag
torch_dtype

Torch data types
torch_erfinv

Erfinv
optim_required

Dummy value indicating a required value.
nnf_one_hot

One_hot
optim_rmsprop

RMSprop optimizer
torch_cholesky_solve

Cholesky_solve
torch_conv2d

Conv2d
torch_conv3d

Conv3d
reexports

Re-exporting the as_iterator function.
nnf_multilabel_soft_margin_loss

Multilabel_soft_margin_loss
nnf_relu

Relu
nnf_nll_loss

Nll_loss
nnf_max_pool2d

Max_pool2d
nnf_relu6

Relu6
torch_cosine_similarity

Cosine_similarity
torch_abs

Abs
nnf_triplet_margin_with_distance_loss

Triplet margin with distance loss
threads

Number of threads
torch_count_nonzero

Count_nonzero
nnf_sigmoid

Sigmoid
optimizer

Creates a custom optimizer
nnf_smooth_l1_loss

Smooth_l1_loss
optim_adagrad

Adagrad optimizer
optim_adam

Implements Adam algorithm.
torch_det

Det
torch_empty_like

Empty_like
torch_empty

Empty
torch_dequantize

Dequantize
torch_flatten

Flatten
torch_arcsin

Arcsin
torch_flip

Flip
torch_atanh

Atanh
torch_atleast_1d

Atleast_1d
torch_arcsinh

Arcsinh
torch_full_like

Full_like
torch_hamming_window

Hamming_window
torch_bucketize

Bucketize
torch_gt

Gt
torch_full

Full
torch_is_installed

Verifies if torch is installed
torch_ceil

Ceil
tensor_dataset

Dataset wrapping tensors.
torch_bincount

Bincount
torch_is_nonzero

Is_nonzero
torch_celu

Celu
torch_amin

Amin
torch_amax

Amax
torch_bitwise_xor

Bitwise_xor
torch_addr

Addr
torch_allclose

Allclose
torch_bitwise_not

Bitwise_not
torch_bitwise_or

Bitwise_or
torch_channel_shuffle

Channel_shuffle
torch_blackman_window

Blackman_window
torch_conj

Conj
torch_cholesky

Cholesky
torch_empty_strided

Empty_strided
torch_conv1d

Conv1d
torch_cosh

Cosh
torch_divide

Divide
torch_cos

Cos
torch_bitwise_and

Bitwise_and
torch_dot

Dot
torch_block_diag

Block_diag
torch_isinf

Isinf
torch_isnan

Isnan
torch_fft_ifft

Ifft
torch_fmod

Fmod
torch_imag

Imag
torch_ger

Ger
torch_frac

Frac
torch_geqrf

Geqrf
torch_iinfo

Integer type info
torch_lu

LU
torch_clone

Clone
torch_clip

Clip
torch_cross

Cross
torch_bmm

Bmm
torch_addmm

Addmm
torch_arange

Arange
torch_angle

Angle
torch_addmv

Addmv
%>%

Pipe operator
torch_lgamma

Lgamma
torch_log10

Log10
torch_linspace

Linspace
torch_log1p

Log1p
torch_atan

Atan
torch_eq

Eq
torch_less

Less
torch_isclose

Isclose
torch_logaddexp2

Logaddexp2
torch_finfo

Floating point type info
torch_fix

Fix
torch_isfinite

Isfinite
torch_less_equal

Less_equal
torch_gather

Gather
torch_gcd

Gcd
torch_conv_transpose2d

Conv_transpose2d
torch_logical_xor

Logical_xor
torch_eig

Eig
torch_einsum

Einsum
torch_cumsum

Cumsum
torch_exp

Exp
torch_conv_transpose3d

Conv_transpose3d
torch_deg2rad

Deg2rad
torch_exp2

Exp2
torch_max

Max
torch_lu_solve

Lu_solve
torch_hann_window

Hann_window
torch_logcumsumexp

Logcumsumexp
torch_heaviside

Heaviside
torch_atleast_2d

Atleast_2d
torch_atleast_3d

Atleast_3d
torch_atan2

Atan2
torch_i0

I0
torch_isreal

Isreal
torch_hypot

Hypot
torch_le

Le
torch_istft

Istft
torch_can_cast

Can_cast
torch_cummax

Cummax
torch_lerp

Lerp
torch_logical_and

Logical_and
torch_logdet

Logdet
torch_maximum

Maximum
torch_mode

Mode
torch_ne

Ne
torch_narrow

Narrow
torch_trace

Trace
torch_mm

Mm
torch_lt

Lt
torch_lstsq

Lstsq
torch_cartesian_prod

Cartesian_prod
torch_manual_seed

Sets the seed for generating random numbers.
torch_pixel_shuffle

Pixel_shuffle
torch_poisson

Poisson
torch_selu_

Selu_
torch_chain_matmul

Chain_matmul
torch_celu_

Celu_
torch_combinations

Combinations
torch_masked_select

Masked_select
torch_rad2deg

Rad2deg
torch_mul

Mul
torch_movedim

Movedim
torch_mean

Mean
torch_median

Median
torch_memory_format

Memory format
torch_diag_embed

Diag_embed
torch_qscheme

Creates the corresponding Scheme object
torch_sqrt

Sqrt
torch_diagflat

Diagflat
torch_complex

Complex
torch_promote_types

Promote_types
torch_nonzero

Nonzero
torch_outer

Outer
torch_nextafter

Nextafter
torch_stack

Stack
torch_ormqr

Ormqr
torch_meshgrid

Meshgrid
torch_nanquantile

Nanquantile
torch_nansum

Nansum
torch_logit

Logit
torch_quantile

Quantile
torch_qr

Qr
torch_rand

Rand
torch_reduction

Creates the reduction objet
torch_equal

Equal
torch_dist

Dist
torch_erf

Erf
torch_div

Div
torch_triu_indices

Triu_indices
torch_rot90

Rot90
torch_rand_like

Rand_like
torch_renorm

Renorm
torch_remainder

Remainder
torch_reciprocal

Reciprocal
torch_quantize_per_channel

Quantize_per_channel
torch_randint

Randint
torch_triu

Triu
torch_fft_irfft

Irfft
torch_sgn

Sgn
torch_transpose

Transpose
torch_round

Round
torch_tan

Tan
torch_squeeze

Squeeze
torch_t

T
torch_range

Range
torch_quantize_per_tensor

Quantize_per_tensor
torch_fft_rfft

Rfft
torch_real

Real
torch_multinomial

Multinomial
torch_multiply

Multiply
torch_neg

Neg
torch_floor

Floor
torch_result_type

Result_type
torch_roll

Roll
with_no_grad

Temporarily modify gradient recording.
torch_tanh

Tanh
torch_cummin

Cummin
torch_save

Saves an object to a disk file.
torch_signbit

Signbit
torch_sparse_coo_tensor

Sparse_coo_tensor
torch_scalar_tensor

Scalar tensor
torch_randn_like

Randn_like
torch_negative

Negative
torch_cumprod

Cumprod
torch_diagonal

Diagonal
torch_unsqueeze

Unsqueeze
torch_digamma

Digamma
torch_var

Var
torch_var_mean

Var_mean
torch_sum

Sum
torch_floor_divide

Floor_divide
torch_histc

Histc
torch_hstack

Hstack
torch_is_complex

Is_complex
torch_ones_like

Ones_like
torch_sin

Sin
torch_unsafe_split

Unsafe_split
torch_orgqr

Orgqr
torch_vdot

Vdot
torch_square

Square
torch_kaiser_window

Kaiser_window
torch_logspace

Logspace
torch_is_floating_point

Is_floating_point
torch_layout

Creates the corresponding layout
torch_kthvalue

Kthvalue
torch_split

Split
torch_expm1

Expm1
torch_polar

Polar
torch_take

Take
torch_polygamma

Polygamma
torch_randperm

Randperm
torch_selu

Selu
torch_eye

Eye
torch_searchsorted

Searchsorted
torch_load

Loads a saved object
torch_isneginf

Isneginf
torch_fliplr

Fliplr
torch_lcm

Lcm
torch_flipud

Flipud
torch_view_as_complex

View_as_complex
torch_topk

Topk
torch_vander

Vander
torch_threshold_

Threshold_
torch_subtract

Subtract
torch_view_as_real

View_as_real
with_enable_grad

Enable grad
torch_ge

Ge
torch_log2

Log2
torch_logaddexp

Logaddexp
torch_generator

Create a Generator object
torch_index_select

Index_select
torch_rsqrt

Rsqrt
torch_pdist

Pdist
torch_sinh

Sinh
torch_greater_equal

Greater_equal
torch_logical_not

Logical_not
torch_greater

Greater
torch_matmul

Matmul
torch_log

Log
torch_isposinf

Isposinf
torch_inverse

Inverse
torch_logsumexp

Logsumexp
torch_ones

Ones
torch_mvlgamma

Mvlgamma
torch_pinverse

Pinverse
torch_matrix_power

Matrix_power
torch_slogdet

Slogdet
torch_matrix_rank

Matrix_rank
torch_std_mean

Std_mean
torch_norm

Norm
torch_tril

Tril
torch_tril_indices

Tril_indices
torch_min

Min
torch_logical_or

Logical_or
torch_minimum

Minimum
torch_unsafe_chunk

Unsafe_chunk
torch_sigmoid

Sigmoid
torch_sign

Sign
torch_relu

Relu
torch_pow

Pow
torch_matrix_exp

Matrix_exp
torch_mv

Mv
torch_stft

Stft
torch_prod

Prod
torch_repeat_interleave

Repeat_interleave
torch_normal

Normal
torch_not_equal

Not_equal
torch_randint_like

Randint_like
torch_relu_

Relu_
torch_vstack

Vstack
torch_rrelu_

Rrelu_
torch_std

Std
torch_where

Where
torch_true_divide

TRUE_divide
torch_randn

Randn
torch_sub

Sub
torch_solve

Solve
torch_zeros

Zeros
torch_reshape

Reshape
torch_symeig

Symeig
torch_trapz

Trapz
torch_triangular_solve

Triangular_solve
torch_svd

Svd
torch_unique_consecutive

Unique_consecutive
torch_unbind

Unbind
torch_sort

Sort
torch_tensordot

Tensordot
torch_tensor

Converts R objects to a torch tensor
torch_zeros_like

Zeros_like
torch_trunc

Trunc