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

Function phase_net_file

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

Source from the content-addressed store, hash-verified

89 return f.name
90
91def phase_net_file():
92 with tempfile.NamedTemporaryFile(mode='w+', delete=False) as f:
93 f.write("""name: 'pythonnet' force_backward: true
94 layer { type: 'Python' name: 'layer' top: 'phase'
95 python_param { module: 'test_python_layer' layer: 'PhaseLayer' } }
96 """)
97 return f.name
98
99
100@unittest.skipIf('Python' not in caffe.layer_type_list(),

Callers 1

test_phaseMethod · 0.85

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected