Searched refs:validate_slicing_string (Results 1 – 2 of 2) sorted by relevance
230 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]"))
174 def validate_slicing_string(slicing_string): function488 if not validate_slicing_string(tensor_slicing):