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

Method Compute

tensorflow/core/kernels/scatter_op.cc:84–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82 }
83
84 void Compute(OpKernelContext* c) override {
85 if (use_exclusive_lock_) {
86 // Hold mutex while we apply updates
87 mutex_lock l(*c->input_ref_mutex(0));
88 DoCompute(c);
89 } else {
90 DoCompute(c);
91 }
92 }
93
94 private:
95 bool use_exclusive_lock_;

Callers

nothing calls this directly

Calls 2

DoComputeFunction · 0.85
input_ref_mutexMethod · 0.60

Tested by

no test coverage detected