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

Function parameter_net_file

python/caffe/test/test_python_layer.py:82–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80
81
82def parameter_net_file():
83 with tempfile.NamedTemporaryFile(mode='w+', delete=False) as f:
84 f.write("""name: 'pythonnet' force_backward: true
85 input: 'data' input_shape { dim: 10 dim: 9 dim: 8 }
86 layer { type: 'Python' name: 'layer' bottom: 'data' top: 'top'
87 python_param { module: 'test_python_layer' layer: 'ParameterLayer' } }
88 """)
89 return f.name
90
91def phase_net_file():
92 with tempfile.NamedTemporaryFile(mode='w+', delete=False) as f:

Callers 1

test_parameterMethod · 0.85

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected