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

Method __init__

tensorflow/tensorflow/python/framework/device_spec.py:92–112  ·  view source on GitHub ↗

Create a new `DeviceSpec` object. Args: job: string. Optional job name. replica: int. Optional replica index. task: int. Optional task index. device_type: Optional device type string (e.g. "CPU" or "GPU") device_index: int. Optional device index. If left

(self, job=None, replica=None, task=None, device_type=None,
               device_index=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 6

_components_to_stringMethod · 0.95
to_stringMethod · 0.95
_as_str_or_noneFunction · 0.85
_as_int_or_noneFunction · 0.85
_as_device_str_or_noneFunction · 0.85
hashClass · 0.85

Tested by

no test coverage detected