Searched refs:WhichOneof (Results 1 – 25 of 32) sorted by relevance
12
82 if pb.WhichOneof("optional_enabled") is not None:84 if pb.WhichOneof("optional_use_choose_fastest") is not None:387 if pb.WhichOneof("optional_apply_default_optimizations") is not None:389 if pb.WhichOneof("optional_autotune") is not None:391 if pb.WhichOneof("optional_autotune_buffers") is not None:393 if pb.WhichOneof("optional_autotune_cpu_budget") is not None:395 if pb.WhichOneof("optional_autotune_ram_budget") is not None:397 if pb.WhichOneof("optional_filter_fusion") is not None:399 if pb.WhichOneof("optional_filter_with_random_uniform_fusion") is not None:402 if pb.WhichOneof("optional_hoist_random_uniform") is not None:[all …]
62 if pb.WhichOneof("optional_max_intra_op_parallelism") is not None:64 if pb.WhichOneof("optional_private_threadpool_size") is not None:
155 if pb.WhichOneof("optional_num_devices") is not None:
117 isJson = (request.WhichOneof('payload') == 'json_payload')127 if request.WhichOneof('payload') == 'protobuf_payload':134 elif request.WhichOneof('payload') == 'json_payload':145 elif request.WhichOneof('payload') == 'text_payload':
866 self.assertRaises(ValueError, m.WhichOneof, 'no_such_oneof_field')867 self.assertRaises(Exception, m.WhichOneof, 0)871 self.assertIs(None, m.WhichOneof('oneof_field'))876 self.assertEqual('oneof_uint32', m.WhichOneof('oneof_field'))881 self.assertEqual('oneof_string', m.WhichOneof('oneof_field'))887 self.assertIs(None, m.WhichOneof('oneof_field'))890 self.assertEqual('oneof_uint32', m.WhichOneof('oneof_field'))894 self.assertEqual('oneof_string', m.WhichOneof('oneof_field'))900 self.assertEqual('oneof_string', m.WhichOneof('oneof_field'))906 self.assertEqual('oneof_string', m.WhichOneof('oneof_field'))[all …]
1344 def WhichOneof(self, oneof_name): function1358 cls.WhichOneof = WhichOneof
736 which = struct_value.WhichOneof('kind')
603 self.assertEqual(message.value.WhichOneof('kind'), 'null_value')
310 self.assertEqual(client_security.WhichOneof('model'),313 self.assertEqual(server_security.WhichOneof('model'),342 self.assertEqual(client_security.WhichOneof('model'),345 self.assertEqual(server_security.WhichOneof('model'),450 if security.WhichOneof('model') == 'other':
439 if attr_value.WhichOneof("value") == "func":441 elif attr_value.WhichOneof("value") == "list":519 if attr_value.WhichOneof("value") == "func":521 elif attr_value.WhichOneof("value") == "list":
172 if tensor_info.WhichOneof("encoding") is None:178 if tensor_info.WhichOneof("encoding") == "composite_tensor":
172 encoding = tensor_info.WhichOneof("encoding")
343 if self._proto.nodes[node_id].WhichOneof("kind") == "variable"550 kind = proto.WhichOneof("kind")
261 def WhichOneof(self, oneof_group): member in Message
335 which = message.WhichOneof('kind')
65 return address.WhichOneof('address') == 'tcpip_address'
59 if config.payload_config.WhichOneof('payload') == 'simple_params':
165 if config.load_params.WhichOneof('load') == 'closed_loop':
100 encoding = tensor_info.WhichOneof("encoding")350 if ti.WhichOneof("encoding") == "name": # Dense tensors only
343 if value is None or value.WhichOneof('value') is None:
768 kind = col_def.WhichOneof("kind")836 kind = col_def.WhichOneof("kind")
193 if (proto.WhichOneof('kind') == 'user_object' and358 if (child_proto.WhichOneof('kind') == 'variable' and
729 kind = collection_def.WhichOneof("kind")
3070 if pb.WhichOneof("optional_deterministic") is not None:3073 if pb.WhichOneof("optional_external_state_policy") is not None:3078 if pb.WhichOneof("optional_slack") is not None:
1921 kind = collection_def.WhichOneof("kind")1929 kind = collection_def.WhichOneof("kind")2006 kind = collection_def.WhichOneof("kind")2015 kind = collection_def.WhichOneof("kind")