소스 검색

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

modifyDataloader
Glenn Jocher GitHub 2 년 전
부모
커밋
84a8099b75
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      utils/torch_utils.py

+ 2
- 2
utils/torch_utils.py 파일 보기

@@ -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):

Loading…
취소
저장