Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

HF_BaseModelWrapper

HF_BaseModelWrapper


Description

Same as 'nn.Module', but no need for subclasses to call 'super().__init__'

Usage

HF_BaseModelWrapper(
  hf_model,
  output_hidden_states = FALSE,
  output_attentions = FALSE,
  ...
)

Arguments

hf_model

model

output_hidden_states

output hidden states

output_attentions

output attentions

...

additional arguments to pass

Value

None


fastai

Interface to 'fastai'

v2.0.7
Apache License 2.0
Authors
Turgut Abdullayev [ctb, cre, cph, aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.