Explorar el Código

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

modifyDataloader
Glenn Jocher GitHub hace 2 años
padre
commit
84a8099b75
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: 4AEE18F83AFDEB23
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. +2
    -2
      utils/torch_utils.py

+ 2
- 2
utils/torch_utils.py Ver fichero

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

Cargando…
Cancelar
Guardar