Buckets:
General Utilities
This page lists all of Transformers general utility functions that are found in the file utils.py.
Most of those are only useful if you are studying the general code in the library.
Enums and namedtuples[[transformers.utils.ExplicitEnum]]
class transformers.utils.ExplicitEnumtransformers.utils.ExplicitEnum
Enum with more explicit error message for missing values.
class transformers.utils.PaddingStrategytransformers.utils.PaddingStrategy
Possible values for the padding argument in PreTrainedTokenizerBase.call(). Useful for tab-completion in an
IDE.
class transformers.TensorTypetransformers.TensorType
Possible values for the return_tensors argument in PreTrainedTokenizerBase.call(). Useful for
tab-completion in an IDE.
Special Decorators[[transformers.add_start_docstrings]]
transformers.add_start_docstringstransformers.add_start_docstrings
transformers.utils.add_start_docstrings_to_model_forwardtransformers.utils.add_start_docstrings_to_model_forward
transformers.add_end_docstringstransformers.add_end_docstrings
transformers.utils.add_code_sample_docstringstransformers.utils.add_code_sample_docstrings
transformers.utils.replace_return_docstringstransformers.utils.replace_return_docstrings
Other Utilities[[transformers.utils._LazyModule]]
class transformers.utils._LazyModuletransformers.utils._LazyModule
Module class that surfaces all objects but only performs associated imports when the objects are requested.
Xet Storage Details
- Size:
- 6.31 kB
- Xet hash:
- 0e88e3bede31cbd53f4c0a7445b5e2d533e400cda2b5c221764373acf1ef678f
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.