Пример #1
0
 def setUpClass(cls):
     workspace.GlobalInit([
         'caffe2',
         '--caffe2_log_level=0',
     ])
     # clear the default engines settings to separate out its
     # affect from the ops tests
     core.SetEnginePref({}, {})
Пример #2
0
# Module caffe2.python.onnx.tests.onnx_backend_test






import os

import unittest
import onnx.backend.test

import caffe2.python.onnx.backend as c2

from caffe2.python import core
core.SetEnginePref({}, {})

# This is a pytest magic variable to load extra plugins
pytest_plugins = 'onnx.backend.test.report',

backend_test = onnx.backend.test.BackendTest(c2, __name__)

backend_test.exclude(r'(test_hardsigmoid'  # Does not support Hardsigmoid.
                     '|test_hardmax'  # Does not support Hardmax.
                     '|test_.*FLOAT16.*'  # Does not support Cast on Float16.
                     '|test_depthtospace.*'  # Does not support DepthToSpace.
                     '|test_reduce_l1.*'  # Does not support ReduceL1.
                     '|test_reduce_l2.*'  # Does not support ReduceL2.
                     '|test_reduce_log_sum.*'  # Does not support ReduceLogSum.
                     '|test_reduce_prod.*'  # Does not support ReduceProd.
                     '|test_reduce_sum_square.*'  # Does not support ReduceSumSquare
Пример #3
0
 def setUpClass(cls):
     workspace.GlobalInit(get_default_test_flags())
     # clear the default engines settings to separate out its
     # affect from the ops tests
     core.SetEnginePref({}, {})