MCPcopy
hub / github.com/huggingface/transformers / testing_utils.py

File testing_utils.py

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

Source from the content-addressed store, hash-verified

1# Copyright 2020 The HuggingFace Team. All rights reserved.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.

Callers

nothing calls this directly

Calls 13

is_accelerate_availableFunction · 0.85
is_pytest_availableFunction · 0.85
is_torch_availableFunction · 0.85
parse_flag_from_envFunction · 0.85
is_torch_xpu_availableFunction · 0.85
is_torch_npu_availableFunction · 0.85
is_torch_mlu_availableFunction · 0.85
is_torch_hpu_availableFunction · 0.85
is_torch_xla_availableFunction · 0.85
update_mapping_from_specFunction · 0.85
splitMethod · 0.80
is_availableMethod · 0.45

Tested by

no test coverage detected