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

Method advise

tensorflow/python/profiler/model_analyzer.py:279–291  ·  view source on GitHub ↗

Automatically detect problems and generate reports. Args: options: A dict of options. See ALL_ADVICE example above. Returns: A Advise proto that conains the reports from all checkers.

(self, options)

Source from the content-addressed store, hash-verified

277 return tfprof_node
278
279 def advise(self, options):
280 """Automatically detect problems and generate reports.
281
282 Args:
283 options: A dict of options. See ALL_ADVICE example above.
284 Returns:
285 A Advise proto that conains the reports from all checkers.
286 """
287 advise_pb = tfprof_output_pb2.AdviceProto()
288 opts = _build_advisor_options(options)
289 advise_pb.ParseFromString(
290 print_mdl.Profile('advise'.encode('utf-8'), opts.SerializeToString()))
291 return advise_pb
292
293 def serialize_to_string(self):
294 """Serialize the ProfileProto to a binary string.

Callers 2

testMultiStepProfileMethod · 0.95
testAdvisorMethod · 0.80

Calls 5

_build_advisor_optionsFunction · 0.85
ParseFromStringMethod · 0.45
ProfileMethod · 0.45
encodeMethod · 0.45
SerializeToStringMethod · 0.45

Tested by 2

testMultiStepProfileMethod · 0.76
testAdvisorMethod · 0.64