MCPcopy Create free account
hub / github.com/Aveiro-Lin/GraphiContact / LoggingLevel

Function LoggingLevel

src/transformers/src/transformers/testing_utils.py:1275–1292  ·  view source on GitHub ↗

This is a context manager to temporarily change transformers modules logging level to the desired value and have it restored to the original setting at the end of the scope. Example: ```python with LoggingLevel(logging.INFO): AutoModel.from_pretrained("gpt2") # calls

(level)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

test_init_zero3_fp16Method · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected