Buckets:

HuggingFaceDocBuilder's picture
|
download
raw
2.83 kB

一般的なユーティリティ

このページには、ファイル utils.py にある Transformers の一般的なユーティリティ関数がすべてリストされています。

これらのほとんどは、ライブラリで一般的なコードを学習する場合にのみ役に立ちます。

列挙型と名前付きタプル[[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.

特別なデコレーター[[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

その他のユーティリティ[[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.83 kB
·
Xet hash:
ce9ad4a21a6bd9f70ec0452ba86729a45ba3a46dbf8ba2bbce5e448e15e663e8

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