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

Renamed output_type_depends_on_input_value to data_dependent_output_shapes #1209

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Aarsh-Wankar
Copy link

@Aarsh-Wankar Aarsh-Wankar commented Feb 14, 2025

Description

Replaced all instances of output_type_depends_on_input_value with data_dependent_output_shapes for discoverability / standardization. Follows the Aarray API standard for this: https://data-apis.org/array-api/draft/design_topics/data_dependent_output_shapes.html

Related Issue

Checklist

Type of change

  • New feature / enhancement
  • Bug fix
  • Documentation
  • Maintenance
  • Other (please specify):

📚 Documentation preview 📚: https://pytensor--1209.org.readthedocs.build/en/1209/

@@ -195,7 +195,7 @@ class Op(MetaObject):
itypes: Sequence["Type"] | None = None
otypes: Sequence["Type"] | None = None

_output_type_depends_on_input_value = False
_data_dependent_output_shapes = False
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's do singular: data_dependent_output_shape, and remove the prefix. We can follow up with an issue to document this in creating an Op, after #1086 is merged

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have made the changes in my new commit; could you please review them?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rename _output_type_depends_on_input_value
2 participants