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

Method AddCleanupFunction

tensorflow/core/framework/dataset.h:601–603  ·  view source on GitHub ↗

Registers a cleanup function to be called upon object destruction. Registered functions are invoked in the reserve order of registration.

Source from the content-addressed store, hash-verified

599 //
600 // Registered functions are invoked in the reserve order of registration.
601 void AddCleanupFunction(std::function<void()>&& cleanup_fn) {
602 cleanup_fns_.push_back(std::move(cleanup_fn));
603 }
604
605 // Associates the given performance modeling `Node` with this iterator.
606 void SetNode(std::shared_ptr<model::Node> node) { node_ = node.get(); }

Callers 1

MakeIteratorMethod · 0.80

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected