-
Notifications
You must be signed in to change notification settings - Fork 74k
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
Lowercase tf.print when print is a function? #18053
Comments
For API addition: Looks good, go ahead :) |
Will add once I can build TensorFlow again: looks like it's broken after an Xcode upgrade. :/
|
Users with Python 3 or `from __future__ import print_function` can now use lowercase `tf.print`. Fixes tensorflow#18053.
Users with Python 3 or `from __future__ import print_function` can now use lowercase `tf.print`. Fixes tensorflow#18053.
Users with Python 3 or `from __future__ import print_function` can now use lowercase `tf.print`. `create_python_api.py` needed some adjustment to ensure that `print_function` doesn't appear as part of the API. Fixes tensorflow#18053.
Users with Python 3 or `from __future__ import print_function` can now use lowercase `tf.print`. `create_python_api.py` needed some adjustment to ensure that `print_function` doesn't appear as part of the API. Fixes tensorflow#18053.
Users with Python 3 or `from __future__ import print_function` can now use lowercase `tf.print`. `create_python_api.py` needed some adjustment to ensure that `print_function` doesn't appear as part of the API. Fixes #18053.
@girving did you find a fix or workaround for the issue regarding the Xcode upgrade? I'm getting the same error. |
@raliste I think eventually all it took was upgrading Bazel via |
Thank you @girving, that did solve the issue. |
@girving : There are a few other improvements to Please speak up loudly if you object :) |
So the idea is that Note that If I've misunderstood and they'll have the same behavior, then I'm not unsure why it needs to be removed and then added back. |
Discussed with Martin in person. I'm fine with the change. Amused, even. |
See #18053 PiperOrigin-RevId: 203975427
Nagging Assignee @tomerk: It has been 74 days with no activity and this issue has an assignee. Please update the label and/or status accordingly. |
|
System information
Describe the problem
Since TensorFlow must be compatible with Python 2.7,
tf.Print
is uppercase. However,tf.print
would work fine for Python 3 users and Python 2 users withfrom __future__ import print_function
? There's no difficulty adding this to the source, since all TensorFlow source files havefrom __future__ import print_function
, and it wouldn't interfere with any other 2.7 users.Objections to me adding?
The text was updated successfully, but these errors were encountered: