Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unit test failure kernels:sparse_matmul_op_test on AARCH64 #52164

Closed
elfringham opened this issue Sep 28, 2021 · 5 comments
Closed

unit test failure kernels:sparse_matmul_op_test on AARCH64 #52164

elfringham opened this issue Sep 28, 2021 · 5 comments
Assignees
Labels
comp:core issues related to core part of tensorflow stat:awaiting tensorflower Status - Awaiting response from tensorflower TF 2.4 for issues related to TF 2.4 type:bug Bug

Comments

@elfringham
Copy link
Contributor

Please make sure that this is a bug. As per our
GitHub Policy,
we only address code/doc bugs, performance issues, feature requests and
build/installation issues on GitHub. tag:bug_template

System information

  • Have I written custom code (as opposed to using a stock example script provided in TensorFlow): No
  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 18.04
  • Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: N/a
  • TensorFlow installed from (source or binary): source
  • TensorFlow version (use command below): git HEAD
  • Python version: 3.6.9
  • Bazel version (if compiling from source): 3.7.2
  • GCC/Compiler version (if compiling from source): 10.3.0
  • CUDA/cuDNN version: n/a
  • GPU model and memory: n/a

You can collect some of this information using our environment capture
script
You can also obtain the TensorFlow version with:

  1. TF 1.0: python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
  2. TF 2.0: python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"

Describe the current behavior

Test fails

Describe the expected behavior

Test passes

Contributing

  • Do you want to contribute a PR? (yes/no): no
  • Briefly describe your candidate solution(if contributing):

Standalone code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate
the problem. If possible, please share a link to Colab/Jupyter/any notebook.

bazel test //tensorflow/core/kernels:sparse_matmul_op_test

Other info / logs Include any logs or source code that would be helpful to
diagnose the problem. If including tracebacks, please include the full
traceback. Large logs and files should be attached.

[ RUN ] SparseMatmulOpTest.BroadcastPacketTest
[0.170094 0.170094 0.170094 0.170094] != [ 0.170094 0.14922 -0.0823886 0.026985], differences: [ 0 -0.0208738 -0.252482 -0.143109]
tensorflow/core/kernels/sparse_matmul_op_test.cc:329: Failure
Value of: areApprox(ref, data2, PacketSize)
Actual: false
Expected: true
[ FAILED ] SparseMatmulOpTest.BroadcastPacketTest (0 ms)

@elfringham
Copy link
Contributor Author

@cfRod @nSircombe

@elfringham
Copy link
Contributor Author

It looks like AARCH64 is using the definitions of pbroadcast_first et al from

template <typename Packet>
which are only meant for scalars, so do not pick up the correct value.

@mohantym mohantym added comp:ops OPs related issues comp:core issues related to core part of tensorflow TF 2.4 for issues related to TF 2.4 and removed comp:ops OPs related issues labels Sep 29, 2021
@mohantym
Copy link
Contributor

Hi @jvishnuvardhan! Could you please look at this issue.

@mohantym mohantym assigned jvishnuvardhan and unassigned mohantym Sep 29, 2021
@jvishnuvardhan jvishnuvardhan added the stat:awaiting tensorflower Status - Awaiting response from tensorflower label Oct 5, 2021
@elfringham
Copy link
Contributor Author

Fixed by commit 6d8220b

@google-ml-butler
Copy link

Are you satisfied with the resolution of your issue?
Yes
No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:core issues related to core part of tensorflow stat:awaiting tensorflower Status - Awaiting response from tensorflower TF 2.4 for issues related to TF 2.4 type:bug Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants