Learn R Programming

torch (version 0.8.1)

jit_scalar: Adds the 'jit_scalar' class to the input

Description

Allows disambiguating length 1 vectors from scalars when passing them to the jit.

Usage

jit_scalar(x)

Arguments

x

a length 1 R vector.