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

Method list_outputs

tensorflow/python/debug/cli/analyzer_cli.py:1052–1086  ·  view source on GitHub ↗

Command handler for inputs. Show inputs to a given node. Args: args: Command-line arguments, excluding the command prefix, as a list of str. screen_info: Optional dict input containing screen information such as cols. Returns: Output text lines as a R

(self, args, screen_info=None)

Source from the content-addressed store, hash-verified

1050 return output
1051
1052 def list_outputs(self, args, screen_info=None):
1053 """Command handler for inputs.
1054
1055 Show inputs to a given node.
1056
1057 Args:
1058 args: Command-line arguments, excluding the command prefix, as a list of
1059 str.
1060 screen_info: Optional dict input containing screen information such as
1061 cols.
1062
1063 Returns:
1064 Output text lines as a RichTextLines object.
1065 """
1066
1067 # Screen info not currently used by this handler. Include this line to
1068 # mute pylint.
1069 _ = screen_info
1070 # TODO(cais): Use screen info to format the output lines more prettily,
1071 # e.g., hanging indent of long node names.
1072
1073 parsed = self._arg_parsers["list_outputs"].parse_args(args)
1074
1075 output = self._list_inputs_or_outputs(
1076 parsed.recursive,
1077 parsed.node_name,
1078 parsed.depth,
1079 parsed.control,
1080 parsed.op_type,
1081 do_outputs=True)
1082
1083 node_name = debug_graphs.get_node_name(parsed.node_name)
1084 _add_main_menu(output, node_name=node_name, enable_list_outputs=False)
1085
1086 return output
1087
1088 def evaluate_expression(self, args, screen_info=None):
1089 parsed = self._arg_parsers["eval"].parse_args(args)

Callers

nothing calls this directly

Calls 3

_add_main_menuFunction · 0.85
parse_argsMethod · 0.80

Tested by

no test coverage detected