dot-validate_n_tokens: Make Sure the Number of Tokens Makes Sense

.validate_n_tokensR Documentation

Make Sure the Number of Tokens Makes Sense

Description

Make Sure the Number of Tokens Makes Sense

Usage

.validate_n_tokens(n_tokens, allow_null = TRUE)

Arguments

n_tokens

An integer scalar indicating the number of tokens in the output.

allow_null

A logical scalar indicating whether n_tokens can be NULL.

Value

n_tokens, validated.


macmillancontentscience/torchtransformers documentation built on Aug. 6, 2023, 5:35 a.m.