Closed rauletorresc closed 1 month ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 97.93%. Comparing base (
70861a1
) to head (dbe8230
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Context: CondCallable class was assuming boolean values for its predicate, but other types can be passed as predicates as well.
Description of the Change: Convert the predicate into boolean at the constructor site.
Benefits: Predicate is in proper type.
Possible Drawbacks: Are there types that cannot be converted (correctly) to booleans?
Related GitHub Issues: https://github.com/PennyLaneAI/catalyst/issues/940
TODO:
closes #940
[sc-69070]