This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Data comparison is inconsistent with numpy #16964
Comments
Hi,
|
@haojin2 But the problem is not the datatype, but the result - 0 is less than 1e-3 ;-). |
@ptrendx I think it's a data type issue:
I guess |
I think the root cause would be the same as #16653 |
@Tommliu is working on this. |
Tommliu
added a commit
to Tommliu/incubator-mxnet
that referenced
this issue
May 11, 2020
7 tasks
Tommliu
added a commit
to Tommliu/incubator-mxnet
that referenced
this issue
May 19, 2020
Tommliu
added a commit
to Tommliu/incubator-mxnet
that referenced
this issue
May 21, 2020
yzhliu
pushed a commit
that referenced
this issue
May 22, 2020
* add boolean support for concatenate (#18213) * fix binary scalar logic dtype (#16964) * common_expr test remove * binary scalar op support scalar dtype Co-Authored-By: Wentao Xu <[email protected]> * test_error_fix Co-authored-by: Wentao Xu <[email protected]>
closed by #18277 |
AntiZpvoh
pushed a commit
to AntiZpvoh/incubator-mxnet
that referenced
this issue
Jul 6, 2020
* add boolean support for concatenate (apache#18213) * fix binary scalar logic dtype (apache#16964) * common_expr test remove * binary scalar op support scalar dtype Co-Authored-By: Wentao Xu <[email protected]> * test_error_fix Co-authored-by: Wentao Xu <[email protected]>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In [88]: nd.array([0],dtype='int') < 1e-3
Out[88]:
[0]
<NDArray 1 @cpu(0)>
In [89]: np.array([0],dtype='int') < 1e-3
Out[89]: array([ True])
In [90]:
The text was updated successfully, but these errors were encountered: