MCPcopy
hub / github.com/huggingface/transformers / reissue_pt_warnings

Function reissue_pt_warnings

src/transformers/trainer_pt_utils.py:303–308  ·  view source on GitHub ↗
(caught_warnings)

Source from the content-addressed store, hash-verified

301
302
303def reissue_pt_warnings(caught_warnings):
304 # Reissue warnings
305 if len(caught_warnings) > 1:
306 for w in caught_warnings:
307 if w.category is not UserWarning:
308 warnings.warn(w.message, w.category)
309
310
311@contextmanager

Callers 4

_save_scalerMethod · 0.85
_load_scalerMethod · 0.85

Calls 1

warnMethod · 0.80

Tested by

no test coverage detected