tensorflow / tfx

TFX is an end-to-end platform for deploying production ML pipelines
https://tensorflow.org/tfx
Apache License 2.0
2.11k stars 707 forks source link

Implement Placeholder.equals() and use it in CondContext #6822

Closed copybara-service[bot] closed 3 months ago

copybara-service[bot] commented 3 months ago

Implement Placeholder.equals() and use it in CondContext

Because == aka. __eq__ is already reserved for producing predicates, we need a separate function to check if two placeholders are "the same". Note that even non-equal placeholders can eventually resolve to equal values, but that's not what we're concerned with here.