Buckets:

|
download
raw
2.72 kB

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]]

transformers.utils.ExplicitEnum[[transformers.utils.ExplicitEnum]]

Source

Enum with more explicit error message for missing values.

transformers.utils.PaddingStrategy[[transformers.utils.PaddingStrategy]]

Source

Possible values for the padding argument in PreTrainedTokenizerBase.call(). Useful for tab-completion in an IDE.

transformers.TensorType[[transformers.TensorType]]

Source

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_docstrings[[transformers.add_start_docstrings]]

Source

transformers.utils.add_start_docstrings_to_model_forward[[transformers.utils.add_start_docstrings_to_model_forward]]

Source

transformers.add_end_docstrings[[transformers.add_end_docstrings]]

Source

transformers.utils.add_code_sample_docstrings[[transformers.utils.add_code_sample_docstrings]]

Source

transformers.utils.replace_return_docstrings[[transformers.utils.replace_return_docstrings]]

Source

Other Utilities[[transformers.utils._LazyModule]]

transformers.utils._LazyModule[[transformers.utils._LazyModule]]

Source

Module class that surfaces all objects but only performs associated imports when the objects are requested.

Xet Storage Details

Size:
2.72 kB
·
Xet hash:
b57db55f9c9a480ba5ef2f84b44ab781fb27fac9175000da5164dc3825cb0776

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.