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 Nov. 5, 2025, 7:02 p.m.