Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Refine dtype logic for Power node #326

Closed
wants to merge 1 commit into from

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants