Learn R Programming

rTorch (version 0.4.2)

make_copy: Make copy of tensor, numpy array or R array

Description

A copy of an array or tensor might be needed to prevent warnings by new PyTorch versions on overwriting the numpy object

Usage

make_copy(object, ...)

Arguments

object

a torch tensor or numpy array or R array

...

additional parameters