singa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [singa] chrishkchris edited a comment on issue #631: Is there any runtime problem of onnx in Travis CI built SINGA CPU version related to libprotobuf.so.20?
Date Fri, 20 Mar 2020 04:46:15 GMT
chrishkchris edited a comment on issue #631: Is there any runtime problem of onnx in Travis
CI built SINGA CPU version related to libprotobuf.so.20?
URL: https://github.com/apache/singa/issues/631#issuecomment-601523589
 
 
   After quite a exhaustive search of conda package versions' combinations, I found that this
seems to be working for both onnx and singa:
   ```
     host:
       - swig 3.0.12
       - openblas 0.3.9
       - protobuf 3.9.2
       - glog 0.3.5
       - numpy 1.11.3
       - cudnn {{ cudnn }}       # ['cudnn' in str(build_str)]
       - dnnl {{ dnnl }}
       - python {{ python }}
   
     run:
       - {{ pin_compatible('glog', max_pin='x.x') }}
       - {{ pin_compatible('numpy', max_pin='x.x') }}
       - {{ pin_compatible('dnnl', max_pin='x.x') }}
       - cudnn {{ cudnn }}       # ['cudnn' in str(build_str)]
       - python {{ python }}
       - libprotobuf 3.9.2
       - libopenblas 0.3.9
       - pillow
       - future
       - tqdm
       - onnx 1.6.0
       - deprecated 1.2.7
   ```
   onnx 1.5 fails one more test case due to numerical error, so I choose onnx 1.6
   
   However, now there are still two errors in the test case I am investigating why:
   ```
   + python run.py
   ..............................................................................................................................EE...................................................F............................................................................................................................................................................................................................
   ======================================================================
   ERROR: test_clip (test_onnx_backend.TestPythonOnnxBackend)
   ----------------------------------------------------------------------
   Traceback (most recent call last):
     File "/root/miniconda/conda-bld/singa_1584677090067/test_tmp/test/python/test_onnx_backend.py",
line 1896, in test_clip
       name='test_clip_example')
     File "/root/miniconda/conda-bld/singa_1584677090067/test_tmp/test/python/test_onnx_backend.py",
line 55, in expect
       outputs_dict = sonnx.run_node(onnx_node, input_tensors, opset_version)
     File "/root/miniconda/conda-bld/singa_1584677090067/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib/python3.6/site-packages/singa/sonnx.py",
line 1300, in run_node
       return cls._run_node(onnx_node, inputs, handle, forward, opset_version)
     File "/root/miniconda/conda-bld/singa_1584677090067/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib/python3.6/site-packages/singa/sonnx.py",
line 1324, in _run_node
       outputs = forward(*inputs) if handle is None else forward(
     File "/root/miniconda/conda-bld/singa_1584677090067/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib/python3.6/site-packages/singa/autograd.py",
line 499, in clip
       return Clip(min, max)(x)[0]
     File "/root/miniconda/conda-bld/singa_1584677090067/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib/python3.6/site-packages/singa/autograd.py",
line 245, in __call__
       return self._do_forward(*xs)
     File "/root/miniconda/conda-bld/singa_1584677090067/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib/python3.6/site-packages/singa/autograd.py",
line 295, in _do_forward
       ys = self.forward(*xs)
     File "/root/miniconda/conda-bld/singa_1584677090067/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib/python3.6/site-packages/singa/autograd.py",
line 479, in forward
       mask0 = singa.LTFloat(x, self.min)
   TypeError: in method 'LTFloat', argument 2 of type 'float'
   
   ======================================================================
   ERROR: test_clip_default (test_onnx_backend.TestPythonOnnxBackend)
   ----------------------------------------------------------------------
   Traceback (most recent call last):
     File "/root/miniconda/conda-bld/singa_1584677090067/test_tmp/test/python/test_onnx_backend.py",
line 1946, in test_clip_default
       name='test_clip_default_min')
     File "/root/miniconda/conda-bld/singa_1584677090067/test_tmp/test/python/test_onnx_backend.py",
line 55, in expect
       outputs_dict = sonnx.run_node(onnx_node, input_tensors, opset_version)
     File "/root/miniconda/conda-bld/singa_1584677090067/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib/python3.6/site-packages/singa/sonnx.py",
line 1300, in run_node
       return cls._run_node(onnx_node, inputs, handle, forward, opset_version)
     File "/root/miniconda/conda-bld/singa_1584677090067/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib/python3.6/site-packages/singa/sonnx.py",
line 1324, in _run_node
       outputs = forward(*inputs) if handle is None else forward(
   TypeError: clip() missing 1 required positional argument: 'max'
   
   ======================================================================
   FAIL: test_pow (test_onnx_backend.TestPythonOnnxBackend)
   ----------------------------------------------------------------------
   Traceback (most recent call last):
     File "/root/miniconda/conda-bld/singa_1584677090067/test_tmp/test/python/test_onnx_backend.py",
line 1851, in test_pow
       expect(node, inputs=[x, y], outputs=[z], name='test_pow_example')
     File "/root/miniconda/conda-bld/singa_1584677090067/test_tmp/test/python/test_onnx_backend.py",
line 59, in expect
       decimal=5)
     File "/root/miniconda/conda-bld/singa_1584677090067/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib/python3.6/site-packages/numpy/testing/utils.py",
line 918, in assert_array_almost_equal
       precision=decimal)
     File "/root/miniconda/conda-bld/singa_1584677090067/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib/python3.6/site-packages/numpy/testing/utils.py",
line 739, in assert_array_compare
       raise AssertionError(msg)
   AssertionError:
   Arrays are not almost equal to 5 decimals
   
   (mismatch 33.33333333333333%)
    x: array([   1.,   32.,  729.], dtype=float32)
    y: array([   1.     ,   32.     ,  729.00006], dtype=float32)
   
   ----------------------------------------------------------------------
   Ran 400 tests in 1.563s
   ```
   P.S. The above remaining two test case error on test_clip (onnx backend @joddiy) occurs
also in docker container enivornment without conda, so needed to be fixed. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message