You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2020/04/09 21:52:16 UTC

[GitHub] [incubator-mxnet] leezu commented on issue #18004: Wrong result when using new numpy ffi in deferred compute

leezu commented on issue #18004: Wrong result when using new numpy ffi in deferred compute
URL: https://github.com/apache/incubator-mxnet/issues/18004#issuecomment-611770593
 
 
   Thanks for reporting the issue. I can confirm that disabling the new FFI for `tril` via below patch avoids the issue. I'll take a look why the two FFIs behave differently
   
   ``` diff
   diff --git a/python/mxnet/ndarray/numpy/_op.py b/python/mxnet/ndarray/numpy/_op.py
   index 4820f56f3..8ff7ba073 100644
   --- a/python/mxnet/ndarray/numpy/_op.py
   +++ b/python/mxnet/ndarray/numpy/_op.py
   @@ -2051,7 +2051,7 @@ def tril(m, k=0):
               [ 7.,  8.,  0.],
               [10., 11., 12.]])
        """
   -    return _api_internal.tril(m, k)
   +    return _npi.tril(m, k)
   
   
    def _unary_func_helper(x, fn_array, fn_scalar, out=None, **kwargs):
   ```

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