ruff/crates/ruff_linter/resources/test/fixtures/pycodestyle/E402_2.py

8 lines
124 B
Python

import os
os.environ["WORLD_SIZE"] = "1"
os.putenv("CUDA_VISIBLE_DEVICES", "4")
del os.environ["WORLD_SIZE"]
import torch