jit_scalar: Adds the 'jit_scalar' class to the input

View source: R/ivalue.R

jit_scalarR Documentation

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.


torch documentation built on June 7, 2023, 6:19 p.m.