Learn R Programming

rTorch (version 0.4.2)

torch_size: Size of a torch tensor object

Description

Get the size of a torch tensor or of torch.size object

Usage

torch_size(obj)

Arguments

obj

a torch tensor object