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

Method colocate_with

tensorflow/python/framework/ops.py:3647–3718  ·  view source on GitHub ↗

Returns a context manager that specifies an op to colocate with. Note: this function is not for public use, only for internal libraries. For example: ```python a = tf.Variable([1.0]) with g.colocate_with(a): b = tf.constant(1.0) c = tf.add(a, b) ``` `b` an

(self, op, ignore_existing=False)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

_testScopedExportMethod · 0.95
_generate_enqueue_opMethod · 0.80
split_fnMethod · 0.80
sizeMethod · 0.80
lookupMethod · 0.80
insertMethod · 0.80
exportMethod · 0.80
restoreMethod · 0.80
sizeMethod · 0.80
lookupMethod · 0.80
insertMethod · 0.80

Calls 3

appendMethod · 0.45
popMethod · 0.45

Tested by 14

_testScopedExportMethod · 0.76
_train_op_fnFunction · 0.64
testCachingDeviceMethod · 0.64
testBasicMethod · 0.64
testLocationOverridesMethod · 0.64
testColocateWithResetMethod · 0.64