本文整理汇总了Python中cifar10.maybe_download_and_extract方法的典型用法代码示例。如果您正苦于以下问题:Python cifar10.maybe_download_and_extract方法的具体用法?Python cifar10.maybe_download_and_extract怎么用?Python cifar10.maybe_download_and_extract使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类cifar10
的用法示例。
在下文中一共展示了cifar10.maybe_download_and_extract方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: main
# 需要导入模块: import cifar10 [as 别名]
# 或者: from cifar10 import maybe_download_and_extract [as 别名]
def main(argv=None): # pylint: disable=unused-argument
cifar10.maybe_download_and_extract()
if tf.gfile.Exists(FLAGS.eval_dir):
tf.gfile.DeleteRecursively(FLAGS.eval_dir)
tf.gfile.MakeDirs(FLAGS.eval_dir)
evaluate()
示例2: main
# 需要导入模块: import cifar10 [as 别名]
# 或者: from cifar10 import maybe_download_and_extract [as 别名]
def main(argv=None): # pylint: disable=unused-argument
cifar10.maybe_download_and_extract()
if tf.gfile.Exists(FLAGS.train_dir):
tf.gfile.DeleteRecursively(FLAGS.train_dir)
tf.gfile.MakeDirs(FLAGS.train_dir)
train()
示例3: main
# 需要导入模块: import cifar10 [as 别名]
# 或者: from cifar10 import maybe_download_and_extract [as 别名]
def main(argv=None): # pylint: disable=unused-argument
# cifar10.maybe_download_and_extract()
if tf.gfile.Exists(FLAGS.train_dir):
tf.gfile.DeleteRecursively(FLAGS.train_dir)
tf.gfile.MakeDirs(FLAGS.train_dir)
_, _ = yarntf.createClusterServer()
train()
示例4: main
# 需要导入模块: import cifar10 [as 别名]
# 或者: from cifar10 import maybe_download_and_extract [as 别名]
def main(argv=None): # pylint: disable=unused-argument
cifar10.maybe_download_and_extract()
if FLAGS.vanilla:
eval_dir = FLAGS.eval_dir + '/vanilla'
else:
eval_dir = FLAGS.eval_dir + '/vardrop'
eval_dir += '/eval'
if tf.gfile.Exists(eval_dir):
tf.gfile.DeleteRecursively(eval_dir)
tf.gfile.MakeDirs(eval_dir)
evaluate(eval_dir)
示例5: main
# 需要导入模块: import cifar10 [as 别名]
# 或者: from cifar10 import maybe_download_and_extract [as 别名]
def main(argv=None): # pylint: disable=unused-argument
cifar10.maybe_download_and_extract()
if FLAGS.vanilla:
train_dir = FLAGS.train_dir + '/vanilla'
else:
train_dir = FLAGS.train_dir + '/vardrop'
if tf.gfile.Exists(train_dir) and FLAGS.clean:
tf.gfile.DeleteRecursively(train_dir)
if not tf.gfile.Exists(train_dir):
tf.gfile.MakeDirs(train_dir)
train(train_dir)
示例6: main
# 需要导入模块: import cifar10 [as 别名]
# 或者: from cifar10 import maybe_download_and_extract [as 别名]
def main(argv=None): # pylint: disable=unused-argument
cifar10.maybe_download_and_extract()
train()