(model_name: str)
return logdir
Create unique path to save results and checkpoints, e.g. runs/Sep22_19-45-59_gpu-7_gpt2
Create unique path to save results and checkpoints, e.g. runs/Sep22_19-45-59_gpu-7_gpt2
Create unique path to save results and checkpoints e . g . runs / Sep22_19 - 45 - 59_gpu - 7_gpt2
def make_logdir(model_name: str):
    """Create unique path to save results and checkpoints, e.g. runs/Sep22_19-45-59_gpu-7_gpt2"""
    # Code copied from ignite repo
    current_time = datetime.now().strftime('%b%d_%H-%M-%S')
    logdir = os.path.join(
        'runs', current_time + '_' + socket.gethostname() + '_' + model_name)
    return logdir
def make_logdir ( model_name : str ) : # Code copied from ignite repo current_time = datetime . now ( ) . strftime ( '%b%d_%H-%M-%S' ) logdir = os . path . join ( 'runs' , current_time + '_' + socket . gethostname ( ) + '_' + model_name ) return logdir