gpt4 book ai didi

python - pycaffe中SGDSolver和get_solver方法有什么区别?

转载 作者:太空宇宙 更新时间:2023-11-03 16:01:47 24 4
gpt4 key购买 nike

我正在尝试在 pycaffe 上实现 DNN (mnist)。

pretrained_solver = caffe.SGDSolver('mnist/lenet_solver.prototxt')

pretrained_solver = caffe.get_solver('mnist/lenet_solver.prototxt')

上面两行有什么区别?看来我用任何一行都得到了相同的结果......

最佳答案

根据https://github.com/BVLC/caffe/issues/3033 ,

The first (get_solver) allows you to specify the solver type in the prototxt.

The second (SGDSolver) is less reliable because if you specify a different solver type in the prototxt, then it will still use SGDSolver and not tell you that you have a mismatch.

关于python - pycaffe中SGDSolver和get_solver方法有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40276688/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com