def parser_(desc):
parser = parser_def_mgpu(desc)
remove_options(parser, ['--mgpu', '--nccl'])
checkptfile = 'cifar10_cnn_distrib.weights.best.hdf5'
parser.add_argument(
'--checkpt', action='store', nargs='?',
const=checkptfile, default=SUPPRESS,
help='S|Save (overwrites) and load the model weights if available.'
'\nOptionally specify a file/filepath if the default name is '
'undesired.\n(default: {})'.format(checkptfile))
parser.add_argument('--aug', action='store_true', default=False,
help='S|Perform data augmentation on cifar10 set.\n')
parser.add_argument('--logdevp', action='store_true', default=False,
help='S|Log device placement in Tensorflow.\n')
args = parser.parse_args()
return args
cifar10_cnn_distrib_slurm.py 文件源码
python
阅读 26
收藏 0
点赞 0
评论 0
评论列表
文章目录