Home
last modified time | relevance | path

Searched refs:type_dict (Results 1 – 11 of 11) sorted by relevance

/external/python/parse_type/tests/
Dtest_cardinality_field.py200 for type_dict, description in self.INVALID_TYPE_DICT_DATA:
202 type_builder.create_type_variant(special_name, type_dict)
209 type_dict = dict(Number=parse_number)
210 new_types = type_builder.create_type_variants(special_names, type_dict)
224 type_dict = dict(Number=parse_number)
227 type_builder.create_type_variants(type_names, type_dict)
232 for type_dict, description in self.INVALID_TYPE_DICT_DATA:
233 self.assertNotIn("Number", type_dict)
236 type_builder.create_type_variants(names, type_dict)
253 type_dict = dict(Number=parse_number)
[all …]
Dtest_cardinality.py118 type_dict = {
122 parser = parse.Parser(schema, type_dict)
141 type_dict = {
144 parser = parse.Parser(schema, type_dict)
161 type_dict = {
165 parser = parse.Parser(schema, type_dict)
372 type_dict = build_type_dict([parse_opt_number, parse_number])
374 parser = parse.Parser(schema, type_dict)
394 type_dict = build_type_dict([parse_opt_number, parse_number])
396 parser = Parser(schema, type_dict)
[all …]
Dtest_builder.py439 type_dict = build_type_dict(self.TYPE_CONVERTERS)
448 parser = parse.Parser(schema, type_dict)
472 type_dict = build_type_dict(self.TYPE_CONVERTERS)
482 parser = parse.Parser(schema, type_dict)
499 type_dict = build_type_dict(self.TYPE_CONVERTERS)
509 parser = parse.Parser(schema, type_dict)
/external/python/parse_type/parse_type/
Dcardinality_field.py125 type_dict = type_converter
126 type_converter = type_dict.get(primary_name, None)
139 def create_type_variants(cls, type_names, type_dict): argument
156 type_variant = cls.create_type_variant(type_name, type_dict)
162 def create_missing_type_variants(cls, type_names, type_dict): argument
170 if name not in type_dict]
171 return cls.create_type_variants(missing_type_names, type_dict)
Dcfparse.py57 def create_missing_types(cls, schema, type_dict, type_builder=None): argument
72 missing = cls.extract_missing_special_type_names(schema, type_dict)
73 return type_builder.create_type_variants(missing, type_dict)
76 def extract_missing_special_type_names(schema, type_dict): argument
86 if CardinalityField.matches_type(name) and (name not in type_dict):
/external/tensorflow/tensorflow/python/ops/
Ddequantize_op_test.py43 type_dict = {
49 self.assertIn(dtype, type_dict.keys())
50 v_max = np.iinfo(type_dict[dtype]).max
51 v_min = np.iinfo(type_dict[dtype]).min
/external/python/parse_type/
DREADME.rst270 type_dict = dict(Number=parse_number)
272 parser = Parser(schema, type_dict)
273 assert "Number+" in type_dict, "Created missing type variant based on: Number"
/external/protobuf/python/google/protobuf/internal/
Ddescriptor_pool_test.py745 def __init__(self, type_dict, field_list, is_extendable=False, argument
747 self.type_dict = type_dict
765 for name, subtype in self.type_dict.items():
/external/python/pybind11/include/pybind11/
Dcast.h100 auto const &type_dict = get_internals().registered_types_py; in all_type_info_populate() local
107 auto it = type_dict.find(type); in all_type_info_populate()
108 if (it != type_dict.end()) { in all_type_info_populate()
/external/python/cpython2/Objects/
Dtypeobject.c582 type_dict(PyTypeObject *type, void *context) in type_dict() function
646 {"__dict__", (getter)type_dict, NULL, NULL},
/external/python/cpython3/Objects/
Dtypeobject.c850 type_dict(PyTypeObject *type, void *context) in type_dict() function
937 {"__dict__", (getter)type_dict, NULL, NULL},