def log_basic_info(logger, config):
    logger.info('Train {} on CIFAR10'.format(config['model']))
    logger.info('- PyTorch version: {}'.format(torch.__version__))
    logger.info('- Ignite version: {}'.format(ignite.__version__))
    logger.info('\n')
    logger.info('Configuration:')
    for (key, value) in config.items():
        logger.info('\t{}: {}'.format(key, value))
    logger.info('\n')
    if (idist.get_world_size() > 1):
        logger.info('\nDistributed setting:')
        logger.info('\tbackend: {}'.format(idist.backend()))
        logger.info('\tworld size: {}'.format(idist.get_world_size()))
        logger.info('\n')
def log_basic_info(logger, config):
    logger.info('Train {} on CIFAR10'.format(config['model']))
    logger.info('- PyTorch version: {}'.format(torch.__version__))
    logger.info('- Ignite version: {}'.format(ignite.__version__))
    logger.info('\n')
    logger.info('Configuration:')
    for (key, value) in config.items():
        logger.info('\t{}: {}'.format(key, value))
    logger.info('\n')
    if (idist.get_world_size() > 1):
        logger.info('\nDistributed setting:')
        logger.info('\tbackend: {}'.format(idist.backend()))
        logger.info('\tworld size: {}'.format(idist.get_world_size()))
        logger.info('\n')