在 Ubuntu 15.10 64bit 和 python 2.7 上执行 train_mnist.py 时,出现以下错误(IOError: [Errno 2] No such file or directory: 'result/cg.dot')。让我知道如何解决它。
survey@SURVEY-C11:~/chainer/examples/mnist$ python train_mnist.py
GPU: -1
# unit: 1000
# Minibatch-size: 100
# epoch: 20
Traceback (most recent call last):
File "train_mnist.py", line 115, in <module>
main()
File "train_mnist.py", line 112, in main
trainer.run()
File "/home/survey/anaconda2/lib/python2.7/site-packages/chainer/training/trainer.py", line 292, in run
entry.extension(self)
File "/home/survey/anaconda2/lib/python2.7/site-packages/chainer/training/extensions/computational_graph.py", line 57, in dump_graph
with open(out_path, 'w') as f:
IOError: [Errno 2] No such file or directory: 'result/cg.dot'