Home
last modified time | relevance | path

Searched refs:type_map (Results 1 – 16 of 16) sorted by relevance

/third_party/selinux/libsepol/src/
Doptimize.c134 static void destroy_type_map(const policydb_t *p, struct type_vec *type_map) in destroy_type_map() argument
138 type_vec_destroy(&type_map[i]); in destroy_type_map()
139 free(type_map); in destroy_type_map()
191 const struct type_vec *type_map, in is_avrule_redundant() argument
211 for (i = 0; i < type_map[s_idx].count; i++) { in is_avrule_redundant()
212 st = type_map[s_idx].types[i]; in is_avrule_redundant()
215 for (k = 0; k < type_map[t_idx].count; k++) { in is_avrule_redundant()
216 tt = type_map[t_idx].types[k]; in is_avrule_redundant()
249 const struct type_vec *type_map) in is_cond_rule_redundant() argument
275 if (!type_vec_contains(&type_map[s1], s2)) in is_cond_rule_redundant()
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/
Dgen_format_map.py118 def parse_format_case(format, type_map): argument
120 for type, internal_format in sorted(type_map.items()):
149 for format, type_map in sorted(format_map.items()):
150 format_cases += parse_format_case(format, type_map)
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/
Dgen_format_map.py119 def parse_format_case(format, type_map): argument
121 for type, internal_format in sorted(type_map.iteritems()):
148 for format, type_map in sorted(format_map.iteritems()):
149 format_cases += parse_format_case(format, type_map)
/third_party/mesa3d/src/amd/registers/
Dparse_kernel_headers.py769 type_map = enum_map[field]
772 if len(type_map) == 1:
773 type_name = type_map[0];
775 reg_index = type_map.index(name) if name in type_map else -1
777 type_name = type_map[reg_index - 1]
/third_party/mindspore/mindspore/lite/tools/converter/parser/tflite/
Dtflite_util.cc36 std::map<int, TypeId> type_map = { variable
49 auto iter = type_map.find(tflite_data_type); in GetTfliteDataType()
50 if (iter == type_map.end()) { in GetTfliteDataType()
/third_party/mindspore/mindspore/compression/common/
Dconstant.py81 type_map = {
97 return type_map[dtype]
/third_party/mindspore/mindspore/core/ir/
Ddtype_extends.cc274 static std::map<std::string, TypePtr> type_map = {{"None", std::make_shared<TypeNone>()}, in GetTypeByFullString() local
290 auto iter = type_map.find(type_name); in GetTypeByFullString()
291 return iter == type_map.end() ? nullptr : iter->second; in GetTypeByFullString()
301 … std::map<std::string, std::function<TypePtr(const std::string &type_name)>, name_cmp> type_map = { in GetTypeByStringStarts() local
312 auto iter = type_map.find(type_name); in GetTypeByStringStarts()
313 return iter == type_map.end() ? nullptr : iter->second(type_name); in GetTypeByStringStarts()
/third_party/mindspore/mindspore/ccsrc/runtime/device/ascend/
Dkernel_select_ascend.cc236 bool CheckHitTargetDtype(const std::map<TypeId, TypeId> &type_map, const TypeId &in_dtype, const Ty… in CheckHitTargetDtype() argument
238 auto iter = type_map.find(in_dtype); in CheckHitTargetDtype()
240 if (iter == type_map.end() && in_dtype != device_dtype) { in CheckHitTargetDtype()
245 if (iter != type_map.end() && iter->second != device_dtype && in_dtype != device_dtype) { in CheckHitTargetDtype()
255 const std::map<TypeId, TypeId> &type_map) { in TagRaiseReduce() argument
266 if (!CheckHitTargetDtype(type_map, in_dtype, device_dtype, &flag)) { in TagRaiseReduce()
278 if (!CheckHitTargetDtype(type_map, in_dtype, device_dtype, &flag)) { in TagRaiseReduce()
/third_party/mesa3d/src/util/format/
Du_format_table.py53 type_map = { variable
153 …print(" {%s, %s, %s, %u, %u}%s\t/* %s = %s */" % (type_map[channel.type], bool_map(channel.no…
/third_party/mesa3d/src/mapi/glapi/gen/
DglX_proto_recv.py158 self.type_map = {}
168 self.type_map[ t_name ] = t.glx_name
212 return ' (%-8s)bswap_%-7s( pc + %2s )' % (t, self.type_map[ t_name ], o)
/third_party/mindspore/mindspore/ccsrc/frontend/operator/composite/
Ddo_signature.h59 extern const std::map<TypeId, size_t> type_map;
Ddo_signature.cc33 const std::map<TypeId, size_t> type_map = {{kNumberTypeBool, 1}, {kNumberTypeInt8, 2}, {kNumb… variable
114 auto it = type_map.find(arg_type_id); in GetMaxTypeId()
115 if (it == type_map.end()) { in GetMaxTypeId()
/third_party/mindspore/mindspore/core/abstract/
Dutils.cc30 const std::map<TypeId, size_t> type_map = { variable
300 auto iter = type_map.find(data_type); in TypeIdSize()
301 if (iter != type_map.end()) { in TypeIdSize()
/third_party/mindspore/mindspore/compression/quant/
Dqat.py582 type_map = {
597 cell.weight_dtype = type_map[quantizable_layer_bit_dict[i][0]]
/third_party/mindspore/mindspore/ccsrc/transform/express_ir/
Donnx_exporter.cc540 static std::unordered_map<int, onnx::TensorProto_DataType> type_map = { in GetOnnxDataType() local
556 auto iter = type_map.find(type_id); in GetOnnxDataType()
557 if (iter == type_map.end()) { in GetOnnxDataType()
/third_party/mindspore/mindspore/ccsrc/pipeline/pynative/
Dpynative_execute.cc249 auto type_priority = prim::type_map.find(arg_type_id); in GetDstType()
250 if (type_priority == prim::type_map.end()) { in GetDstType()
1250 …is_same_type = (prim::type_map.find(arg_type_id) == prim::type_map.end() || arg_type_id == it->sec… in DoSignatrueCast()