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 May 29, 2024, 9:54 a.m.