Home
last modified time | relevance | path

Searched refs:parse_indices (Results 1 – 3 of 3) sorted by relevance

/external/tensorflow/tensorflow/python/debug/cli/
Dcommand_parser_test.py246 self.assertEqual([0], command_parser.parse_indices("[0]"))
247 self.assertEqual([0], command_parser.parse_indices(" [0] "))
248 self.assertEqual([-1, 2], command_parser.parse_indices("[-1, 2]"))
250 command_parser.parse_indices("[3,4,-5]"))
253 self.assertEqual([0], command_parser.parse_indices("0"))
254 self.assertEqual([0], command_parser.parse_indices(" 0 "))
255 self.assertEqual([-1, 2], command_parser.parse_indices("-1, 2"))
256 self.assertEqual([3, 4, -5], command_parser.parse_indices("3,4,-5"))
261 self.assertEqual([0], command_parser.parse_indices("0,a"))
265 self.assertEqual([0], command_parser.parse_indices("1, 2]"))
[all …]
Dcommand_parser.py219 def parse_indices(indices_string): function
Dcurses_ui.py709 indices = command_parser.parse_indices(indices_str)