Skip to content

Commit ddafc1b

Browse files
authored
Revert "Update torch_utils.py import LOGGER (#5483)"
This reverts commit 84a8099.
1 parent 06bf8ef commit ddafc1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/torch_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020
import torch.nn.functional as F
2121
import torchvision
2222

23-
from utils.general import LOGGER
24-
2523
try:
2624
import thop # for FLOPs computation
2725
except ImportError:
2826
thop = None
2927

28+
LOGGER = logging.getLogger(__name__)
29+
3030

3131
@contextmanager
3232
def torch_distributed_zero_first(local_rank: int):

0 commit comments

Comments
 (0)