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

Function IsHostMemoryPreserving

tensorflow/core/graph/graph.h:889–891  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

887inline bool IsScopedAllocator(const Node* n) { return n->IsScopedAllocator(); }
888
889inline bool IsHostMemoryPreserving(const Node* node) {
890 return IsIdentity(node) || IsControlFlow(node);
891}
892
893// NOTE: We declare Reference type of NodeIter and NeighborIter as Node* (see
894// https://en.cppreference.com/w/cpp/iterator/iterator).

Callers

nothing calls this directly

Calls 2

IsIdentityFunction · 0.70
IsControlFlowFunction · 0.70

Tested by

no test coverage detected