Update torch_utils.py import `LOGGER` (#5483)

pull/5484/head
Glenn Jocher 2021-11-03 17:17:38 +01:00 committed by GitHub
parent df30426c03
commit 84a8099b75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -20,13 +20,13 @@ import torch.nn as nn
import torch.nn.functional as F
import torchvision
from utils.general import LOGGER
try:
import thop # for FLOPs computation
except ImportError:
thop = None
LOGGER = logging.getLogger(__name__)
@contextmanager
def torch_distributed_zero_first(local_rank: int):