Expose tf.config.experimental_list_devices
PiperOrigin-RevId: 234895637
This commit is contained in:
parent
2127948229
commit
3a83826bd1
@ -921,6 +921,7 @@ def device(name):
|
||||
return context().device(name)
|
||||
|
||||
|
||||
@tf_export("config.experimental_list_devices")
|
||||
def list_devices():
|
||||
"""List the names of the available devices.
|
||||
|
||||
|
@ -4,6 +4,10 @@ tf_module {
|
||||
name: "experimental_connect_to_host"
|
||||
argspec: "args=[\'remote_host\', \'job_name\'], varargs=None, keywords=None, defaults=[\'None\', \'worker\'], "
|
||||
}
|
||||
member_method {
|
||||
name: "experimental_list_devices"
|
||||
argspec: "args=[], varargs=None, keywords=None, defaults=None"
|
||||
}
|
||||
member_method {
|
||||
name: "experimental_run_functions_eagerly"
|
||||
argspec: "args=[\'run_eagerly\'], varargs=None, keywords=None, defaults=None"
|
||||
|
@ -4,6 +4,10 @@ tf_module {
|
||||
name: "experimental_connect_to_host"
|
||||
argspec: "args=[\'remote_host\', \'job_name\'], varargs=None, keywords=None, defaults=[\'None\', \'worker\'], "
|
||||
}
|
||||
member_method {
|
||||
name: "experimental_list_devices"
|
||||
argspec: "args=[], varargs=None, keywords=None, defaults=None"
|
||||
}
|
||||
member_method {
|
||||
name: "experimental_run_functions_eagerly"
|
||||
argspec: "args=[\'run_eagerly\'], varargs=None, keywords=None, defaults=None"
|
||||
|
Loading…
Reference in New Issue
Block a user