Write/create/truncate prototxt when saving to fix #341
authorEvan Shelhamer <shelhamer@imaginarynumber.net>
Wed, 14 May 2014 19:28:55 +0000 (12:28 -0700)
committerEvan Shelhamer <shelhamer@imaginarynumber.net>
Wed, 14 May 2014 19:28:55 +0000 (12:28 -0700)
commitf436cb20df62ed7c5760e8da6f13da28606ac86d
tree8c109fa0dd62efea293b6034d2d8044bcf65ff03
parent7b3e6f2341fe7374243ee0126f5cad1fa1e44e14
Write/create/truncate prototxt when saving to fix #341

WriteProtoToTextFile now saves the prototxt whether or not the file
already exists and sets the permissions to owner read/write and group +
other read.

Thanks @beam2d and @chyh1990 for pointing out the open modes bug.
src/caffe/util/io.cpp