MCPcopy Create free account
hub / github.com/alibaba/nann / replace

Method replace

tensorflow/tensorflow/python/framework/device_spec.py:217–239  ·  view source on GitHub ↗

Convenience method for making a new DeviceSpec by overriding fields. For instance: ``` my_spec = DeviceSpec=(job="my_job", device="CPU") my_updated_spec = my_spec.replace(device="GPU") my_other_spec = my_spec.replace(device=None) ``` Args: **kwargs: This method ta

(self, **kwargs)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

formatMessageMethod · 0.80
setup.pyFile · 0.80
sed_in_placeFunction · 0.80
cygpathFunction · 0.80
create_android_sdk_ruleFunction · 0.80
get_ndk_api_levelFunction · 0.80
run_and_gather_logsFunction · 0.80
_gather_gpu_devices_procFunction · 0.80
gather_cpu_infoFunction · 0.80
write_docsFunction · 0.80

Calls 1

updateMethod · 0.45

Tested by 15

conversion_visitorMethod · 0.64
_restore_map_funcMethod · 0.64
configMethod · 0.64
parserFunction · 0.64
test_replaceMethod · 0.64