MCPcopy Create free account
hub / github.com/BVLC/caffe / write

Method write

examples/pycaffe/tools.py:113–121  ·  view source on GitHub ↗

Export solver parameters to INPUT "filepath". Sorted alphabetically.

(self, filepath)

Source from the content-addressed store, hash-verified

111 self.sp[splitLine[0].strip()] = splitLine[1].strip()
112
113 def write(self, filepath):
114 """
115 Export solver parameters to INPUT "filepath". Sorted alphabetically.
116 """
117 f = open(filepath, 'w')
118 for key, value in sorted(self.sp.items()):
119 if not(type(value) is str):
120 raise TypeError('All solver parameters must be strings')
121 f.write('%s: %s\n' % (key, value))

Callers 15

extract_secondsFunction · 0.80
draw_net_to_fileFunction · 0.80
simple_net_fileFunction · 0.80
setUpMethod · 0.80
setUpMethod · 0.80
setUpMethod · 0.80
python_net_fileFunction · 0.80
exception_net_fileFunction · 0.80
parameter_net_fileFunction · 0.80
phase_net_fileFunction · 0.80
python_param_net_fileFunction · 0.80
load_netMethod · 0.80

Calls 1

typeFunction · 0.50

Tested by 12

simple_net_fileFunction · 0.64
setUpMethod · 0.64
setUpMethod · 0.64
setUpMethod · 0.64
python_net_fileFunction · 0.64
exception_net_fileFunction · 0.64
parameter_net_fileFunction · 0.64
phase_net_fileFunction · 0.64
python_param_net_fileFunction · 0.64
load_netMethod · 0.64
setUpMethod · 0.64
OutputXmlCDataSectionMethod · 0.64