Home
last modified time | relevance | path

Searched refs:validate_slicing_string (Results 1 – 2 of 2) sorted by relevance

/external/tensorflow/tensorflow/python/debug/cli/
Dcommand_parser_test.py230 self.assertTrue(command_parser.validate_slicing_string("[1]"))
231 self.assertTrue(command_parser.validate_slicing_string("[2,3]"))
232 self.assertTrue(command_parser.validate_slicing_string("[4, 5, 6]"))
233 self.assertTrue(command_parser.validate_slicing_string("[7,:, :]"))
236 self.assertFalse(command_parser.validate_slicing_string(""))
237 self.assertFalse(command_parser.validate_slicing_string("[1,"))
238 self.assertFalse(command_parser.validate_slicing_string("2,3]"))
239 self.assertFalse(command_parser.validate_slicing_string("[4, foo()]"))
240 self.assertFalse(command_parser.validate_slicing_string("[5, bar]"))
Dcommand_parser.py174 def validate_slicing_string(slicing_string): function
488 if not validate_slicing_string(tensor_slicing):