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

Class Handle

tensorflow/core/framework/collective.h:314–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312
313 // Lexically scoped handle for Ref.
314 class Handle {
315 public:
316 explicit Handle(CollectiveExecutor* ce, bool inherit_ref) : ce_(ce) {
317 if (!inherit_ref) ce->Ref();
318 }
319 ~Handle() { ce_->Unref(); }
320 CollectiveExecutor* get() const { return ce_; }
321
322 private:
323 CollectiveExecutor* ce_;
324 };
325
326 protected:
327 explicit CollectiveExecutor(CollectiveExecutorMgrInterface* cem)

Callers 5

RunProtoMethod · 0.50
PRunSetupMethod · 0.50
MakeCallableMethod · 0.50
RunCallableMethod · 0.50
ReleaseCallableMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected