rm whitespace

pull/1265/head
Jakub Kaczmarzyk 3 years ago
parent 20a1fa63f8
commit e1e4c9bbae

@ -55,7 +55,7 @@ except AttributeError:
try:
import wandb
has_wandb = True
except ImportError:
except ImportError:
has_wandb = False
torch.backends.cudnn.benchmark = True
@ -326,14 +326,14 @@ def _parse_args():
def main():
setup_default_logging()
args, args_text = _parse_args()
if args.log_wandb:
if has_wandb:
wandb.init(project=args.experiment, config=args)
else:
else:
_logger.warning("You've requested to log metrics to wandb but package not found. "
"Metrics not being logged to wandb, try `pip install wandb`")
args.prefetcher = not args.no_prefetcher
args.distributed = False
if 'WORLD_SIZE' in os.environ:

Loading…
Cancel
Save