【问题标题】:how to set test iteration variable in tensorflow如何在张量流中设置测试迭代变量
【发布时间】:2016-02-11 23:01:14
【问题描述】:

BVLC 和 Nvidia 的 caffe 中的 test_iter 变量是否与 cifar 示例代码中 tensorflow 的 NUM_EXAMPLES_PER_EPOCH_FOR_TRAIN 相同?如果没有,我在哪里可以设置 test_iter 和 test_interval(在 Caffe 中使用)?

【问题讨论】:

    标签: tensorflow


    【解决方案1】:

    NUM_EXAMPLES_PER_EPOCH_FOR_TRAIN 常量表示training set for CIFAR-10 training 中的图像数量。

    在 Caffe 中,test_iter 是要执行的评估迭代次数。 TensorFlow's CIFAR-10 eval 对完整的 10000 张图像进行评估,没有类似于 test_iter 的数量。

    【讨论】:

    • 谢谢。 caffe 中有没有和 test_interval 一样的东西?
    • CIFAR-10 示例的配置方式并不容易:train 和 eval 程序是分开的。但是,您可以修改 cifar10_train.py,使其在每(例如)500 次训练迭代后调用 cifar10_eval.eval_once(),以模拟 Caffe 的 test_interval
    猜你喜欢
    • 2018-08-14
    • 2016-11-01
    • 2019-07-11
    • 2023-04-05
    • 2016-11-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多