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

Description Usage Arguments

View source: R/properties.R

Description

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

Usage

1
make_copy(object, ...)

Arguments

object

a torch tensor or numpy array or R array

...

additional parameters


rTorch documentation built on Jan. 13, 2021, 4:32 p.m.