FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Skip python layer tests if WITH_PYTHON_LAYER unset · kk52099/Caffe-HRT@c4190a5 · GitHub

Repository navigation

Commit c4190a5

Browse files
committed
Skip python layer tests if WITH_PYTHON_LAYER unset
1 parent 603cbfb commit c4190a5

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎python/caffe/test/test_python_layer.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ def parameter_net_file():
7777
return f.name
7878

7979

80+
@unittest.skipIf('Python' not in caffe.layer_type_list(),
81+
'Caffe built without Python layer support')
8082
class TestPythonLayer(unittest.TestCase):
8183
def setUp(self):
8284
net_file = python_net_file()

‎python/caffe/test/test_python_layer_with_param_str.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ def python_param_net_file():
3838
return f.name
3939

4040

41+
@unittest.skipIf('Python' not in caffe.layer_type_list(),
42+
'Caffe built without Python layer support')
4143
class TestLayerWithParam(unittest.TestCase):
4244
def setUp(self):
4345
net_file = python_param_net_file()

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL