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)
| 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. |