You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2019/12/04 00:04:27 UTC

[GitHub] [incubator-tvm] apivovarov edited a comment on issue #4142: [QNN][TFLite] Parsing QNN Add op. Adding MobilenetV2.

apivovarov edited a comment on issue #4142: [QNN][TFLite] Parsing QNN Add op. Adding MobilenetV2.
URL: https://github.com/apache/incubator-tvm/pull/4142#issuecomment-561413217
 
 
   @anijain2305 I noticed that `test_forward_qnn_mobilenet_v2_net` work only if `random.seed(0)` set to 0. if I set seed to say 20 - the test fails.
   
   I also tried to replace deprecated `numpy.random.random_integers` with `numpy.random.randint`
   the test failed as well
   
   So , looks like the test only works for particular input data started with 
   ```
   >>> np.random.seed(0)
   >>> data = np.random.random_integers(low=0, high=128, size=(1, 224, 224, 3)).astype('uint8')
   >>> data
   array([[[[ 47, 117,  67],
            [103,   9,  21],
            [ 36,  87,  70],
            ...,
            [ 43, 110, 118],
            [ 22, 109,  11],
            [119,  26,  48]],
   ...
   ````

----------------------------------------------------------------
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