MCPcopy Index your code
hub / github.com/modelscope/modelscope / device.py

File device.py

modelscope/utils/device.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1# Copyright (c) Alibaba, Inc. and its affiliates.
2import os
3from contextlib import contextmanager
4

Callers

nothing calls this directly

Calls 1

get_loggerFunction · 0.90

Tested by

no test coverage detected