Skip to content

Conversation

@angus-g
Copy link
Contributor

@angus-g angus-g commented Nov 7, 2024

We know how to optimise 0 ** x and x ** 0 to a Zero or Constant(1) node, but we can't assume that x is an instance of Constant with a defined dtype.

We know `0 ** x` and `x ** 0`, but we can't assume that `x` is an instance of `Constant` with a defined dtype.
@ksagiyam
Copy link
Contributor

Unfortunately, we need a more robust fix. Please see if #327 fixes your issue.

@angus-g angus-g closed this Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants