MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Device

Method Device

tensorflow/go/operation.go:50–52  ·  view source on GitHub ↗

Device returns a specification of the device on which this operation will be executed, or the empty string if there is no such specification.

()

Source from the content-addressed store, hash-verified

48// Device returns a specification of the device on which this operation
49// will be executed, or the empty string if there is no such specification.
50func (op *Operation) Device() string {
51 return C.GoString(C.TF_OperationDevice(op.c))
52}
53
54// OutputListSize returns the size of the list of Outputs that is produced by a
55// named output of op.

Callers 15

lookup_kernels.ccFile · 0.45
cuda_op_kernel.ccFile · 0.45
ackermann_op.ccFile · 0.45
test_ops.ccFile · 0.45
py_func.ccFile · 0.45
BuildEagerOpMethod · 0.45
TestOperationDeviceFunction · 0.45
TestDeviceFunction · 0.45
cuda_op_kernel.ccFile · 0.45

Calls

no outgoing calls

Tested by 2

TestOperationDeviceFunction · 0.36
TestDeviceFunction · 0.36