本文整理匯總了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()