-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
tensorflow
: Add some functions from the config module.
#11325
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
Conversation
tensorflow
: Add some functions from the config module.
31a04c3
to
03dd434
Compare
@hmc-cs-mdrissi If you have time to review it. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
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.
Thanks, one optional comment
|
||
def get_memory_info(device: str) -> _MemoryInfo: ... | ||
def reset_memory_stats(device: str) -> None: ... | ||
def get_memory_usage(device: PhysicalDevice) -> int: ... |
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.
Looks like this is deprecated:
@deprecation.deprecated(
None,
"Use tf.config.experimental.get_memory_info(device)['current'] instead.")
Consider marking it with @typing_extensions.deprecated
.
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.
Done in 9898dc7
This comment has been minimized.
This comment has been minimized.
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
Add some functions related to
PhysicalDevice
s.