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

Method GenerateReport

tensorflow/python/grappler/model_analyzer.cc:29–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27ModelAnalyzer::ModelAnalyzer(const GrapplerItem& item) : item_(item) {}
28
29Status ModelAnalyzer::GenerateReport(bool debug, bool assume_valid_feeds,
30 std::ostream& os) {
31 GraphProperties properties(item_);
32 TF_RETURN_IF_ERROR(properties.InferStatically(assume_valid_feeds));
33
34 for (const auto& node : item_.MainOpsFanin()) {
35 PrintNodeInfo(node, properties, debug, os);
36 }
37 for (const auto& node : item_.EnqueueOpsFanin()) {
38 PrintNodeInfo(node, properties, debug, os);
39 }
40
41 return Status::OK();
42}
43
44void ModelAnalyzer::PrintNodeInfo(const NodeDef* node,
45 const GraphProperties& properties, bool debug,

Callers

nothing calls this directly

Calls 4

PrintNodeInfoFunction · 0.85
MainOpsFaninMethod · 0.80
EnqueueOpsFaninMethod · 0.80
InferStaticallyMethod · 0.45

Tested by

no test coverage detected