MCPcopy Create free account
hub / github.com/benoitsteiner/tensorflow-opencl / device

Method device

tensorflow/python/framework/ops.py:3721–3790  ·  view source on GitHub ↗

Returns a context manager that specifies the default device to use. The `device_name_or_function` argument may either be a device name string, a device function, or None: * If it is a device name string, all operations constructed in this context will be assigned to the device wi

(self, device_name_or_function)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls 2

appendMethod · 0.45
popMethod · 0.45