HF_BaseInput: HF_BaseInput

View source: R/blurr_hugging_face.R

HF_BaseInputR Documentation

HF_BaseInput

Description

A HF_BaseInput object is returned from the decodes method of HF_BatchTransform as a mean to customize '@typedispatched' functions like DataLoaders.show_batch and Learner.show_results. It represents the "input_ids" of a huggingface sequence as a tensor with a show method that requires a huggingface tokenizer for proper display.

Usage

HF_BaseInput(...)

Arguments

...

parameters to pass

Value

None


fastai documentation built on June 22, 2024, 11:15 a.m.