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

Add missing tf.function parameters #142

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

Conversation

tatianacv
Copy link
Member

@tatianacv tatianacv commented Jan 24, 2023

Fixes #139.

Commits

  • I slowed down and took a deep breadth before committing. Otherwise, I will start a pristine branch and reissue this pull request.
  • Before committing my changes, I checked my working directory carefully. I only staged the changes I wanted and ensured it was of the utmost quality.
  • I used git diff and git status to check my work carefully before committing.
  • I completely understand what I am committing and why.
  • I completely understand why things are the way they are.
  • The change I am proposing makes complete sense to me.
  • For the most part, the changes in this pull request correspond to the problem or task I am solving or performing. In other words, only the changes that are supposed to be there are the ones included in this pull request.

Expectations

We should now have the params experimental_compile and experimental_relax_shapes. We added getters to those tf.function parameters and added an additional check for these in the tests.

Testing

  • If this is a bug fix, I was able to reproduce the problem locally before I made any changes (can use git stash to temporarily reset the working directory).
  • When I made (or put back) my changes, the problem I reproduced above was fixed.

Added another conditional statement to reflect the missing tf.function parameters.

Final Checks

  • The changes I am proposing meet the expectations I have described above.
  • I have performed a self-review of my code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation if applicable.
  • I have added tests that prove my fix is effective or that my feature works if applicable.
  • New and existing unit tests pass locally with my changes.

@tatianacv tatianacv requested a review from khatchad as a code owner January 24, 2023 04:58
@khatchad khatchad changed the title Adding missing tffunction parameters Add missing tf.function parameters Jan 24, 2023
@tatianacv tatianacv mentioned this pull request Jan 24, 2023
15 tasks
@khatchad
Copy link
Member

What is the status of this one? Are there changes for me to review since the last time I saw it? Also, it looks like there's a conflict now.

@khatchad
Copy link
Member

I had a look at the conflict. I don't think I can resolve it.

@tatianacv
Copy link
Member Author

What is the status of this one? Are there changes for me to review since the last time I saw it? Also, it looks like there's a conflict now.

I resolved the conflict. We have a pending discussion.

@tatianacv tatianacv requested a review from khatchad February 28, 2023 17:16
Copy link
Member

@khatchad khatchad left a comment

Choose a reason for hiding this comment

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

Not sure how these convos got resolved.

* True iff this {@link Function}'s {@link decoratorsType} has parameter reduce_retracing.
* True iff this {@link Function}'s {@link decoratorsType} has parameter reduce_retracing and deprecated name
* experimental_relax_shapes. For more information, you can see this
* <a href="https://www.tensorflow.org/versions/r2.9/api_docs/python/tf/function">URL</a>.
Copy link
Member

Choose a reason for hiding this comment

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

Just the URL is fine; we don't need HTML. I still don't see the HTML anchor reference to the specific field.

Copy link
Member Author

Choose a reason for hiding this comment

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

I have added it.

khatchad
khatchad previously approved these changes Mar 28, 2023
@@ -93,14 +93,14 @@ public class HybridizationParameters {

/**
* True iff this {@link Function}'s {@link decoratorsType} has parameter jit_compile and deprecated name experimental_compile. For
* more information, you can see this <a href="https://www.tensorflow.org/versions/r2.9/api_docs/python/tf/function">URL</a>.
* more information, you can see this https://tensorflow.org/versions/r2.9/api_docs/python/tf/function#experimental_compile.
Copy link
Member

Choose a reason for hiding this comment

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

The anchor doesn't match the field name.

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated.

*/
private boolean jitCompileParamExists;

/**
* True iff this {@link Function}'s {@link decoratorsType} has parameter reduce_retracing and deprecated name
* experimental_relax_shapes. For more information, you can see this
* <a href="https://www.tensorflow.org/versions/r2.9/api_docs/python/tf/function">URL</a>.
* https://tensorflow.org/versions/r2.9/api_docs/python/tf/function#experimental_relax_shapes
Copy link
Member

Choose a reason for hiding this comment

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

The anchor doesn't match the field name.

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated.

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.

Missing tf.function parameters
2 participants