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

[Bug] AmbiguousLookupError for dot with Identity #109

Open
f0uriest opened this issue Oct 24, 2024 · 0 comments
Open

[Bug] AmbiguousLookupError for dot with Identity #109

f0uriest opened this issue Oct 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@f0uriest
Copy link

🐛 Bug

multiplying a dense or diagonal matrix by an Indentity matrix gives a dispatch failure:

import cola
import jax.numpy as jnp
A = cola.ops.Dense(jnp.diag(jnp.arange(4)))
B = cola.ops.I_like(A)
A@B

** Stack trace/error message **

AmbiguousLookupError: For function `dot`, `(<4x4 Dense with dtype=int64>, <4x4 Identity with dtype=int64>)` is ambiguous among the following:
  Dispatched on dot(cola.ops.operator_base.LinearOperator, cola.ops.operator_base.LinearOperator) (precedence: 0)
  Dispatched on dot(typing.Any, cola.ops.operators.Identity) (precedence: 0)```


@f0uriest f0uriest added the bug Something isn't working label Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant