-
Notifications
You must be signed in to change notification settings - Fork 614
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
Test parse time in eager mode #1348
Conversation
You are owner of some files modified in this pull request. |
@@ -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: |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
* Run parse_time_op_test.py in eager mode * Fix test.
See #1328