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

Function IsInPreserveSet

tensorflow/core/grappler/optimizers/remapper.cc:230–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228#endif // INTEL_MKL
229
230bool IsInPreserveSet(const RemapperContext& ctx, const NodeDef* node) {
231 return ctx.nodes_to_preserve.count(node->name()) > 0;
232}
233
234bool HaveSameDataType(const NodeDef* lhs, const NodeDef* rhs,
235 const string& type_attr = "T") {

Callers 15

CanOptimizeMethod · 0.85
IsSupportedMethod · 0.85
TrySimplifyMethod · 0.85
IsSupportedMethod · 0.85
OpsAreSafeToHoistMethod · 0.85
IsSupportedMethod · 0.85
TrySimplifyMethod · 0.85
TrySimplifyMethod · 0.85
TrySimplifyMethod · 0.85
IsSupportedMethod · 0.85
TrySimplifyMethod · 0.85

Calls 2

nameMethod · 0.65
countMethod · 0.45

Tested by

no test coverage detected