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

Method switch_to_thread_local

tensorflow/tensorflow/python/framework/ops.py:4910–4925  ·  view source on GitHub ↗

Make device, colocation and dependencies stacks thread-local. Device, colocation and dependencies stacks are not thread-local be default. If multiple threads access them, then the state is shared. This means that one thread may affect the behavior of another thread. After this met

(self)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

testColocateWithMethod · 0.95
__init__Method · 0.95
testDistributedSimpleMethod · 0.80
testParallelEnqueueMethod · 0.80
testParallelDequeueMethod · 0.80

Calls

no outgoing calls