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

Function exception_net_file

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

Source from the content-addressed store, hash-verified

70
71
72def exception_net_file():
73 with tempfile.NamedTemporaryFile(mode='w+', delete=False) as f:
74 f.write("""name: 'pythonnet' force_backward: true
75 input: 'data' input_shape { dim: 10 dim: 9 dim: 8 }
76 layer { type: 'Python' name: 'layer' bottom: 'data' top: 'top'
77 python_param { module: 'test_python_layer' layer: 'ExceptionLayer' } }
78 """)
79 return f.name
80
81
82def parameter_net_file():

Callers 1

test_exceptionMethod · 0.85

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected