Skip to content

Test parse time in eager mode #1348

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

Merged
merged 2 commits into from
Mar 19, 2020
Merged

Test parse time in eager mode #1348

merged 2 commits into from
Mar 19, 2020

Conversation

gabrieldemarmiesse
Copy link
Member

See #1328

@bot-of-gabrieldemarmiesse

@helinwang

You are owner of some files modified in this pull request.
Would you kindly review the changes whenever you have the time to?
Thank you very much.

@@ -26,7 +26,7 @@
tf.no_gradient("Addons>ParseTime")


def parse_time(time_string: str, time_format: str, output_unit: str) -> str:
def parse_time(time_string: str, time_format: str, output_unit: str) -> tf.Tensor:
Copy link
Contributor

Choose a reason for hiding this comment

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

The return type is changed. Does it still work for non-eager mode / v1 compat mode?

Copy link
Member Author

@gabrieldemarmiesse gabrieldemarmiesse Mar 19, 2020

Choose a reason for hiding this comment

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

Sorry,I should have said it. I changed the return type because it was wrong in the first place. The function returns a tensor, not a python string.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah you are right, thanks!

Copy link
Contributor

@helinwang helinwang left a comment

Choose a reason for hiding this comment

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

Thank you!

@gabrieldemarmiesse gabrieldemarmiesse merged commit 2125961 into tensorflow:master Mar 19, 2020
jrruijli pushed a commit to jrruijli/addons that referenced this pull request Dec 23, 2020
* Run parse_time_op_test.py in eager mode

* Fix test.
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.

6 participants