Home
last modified time | relevance | path

Searched refs:type_converter (Results 1 – 8 of 8) sorted by relevance

/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_element_type_converter_test.cc43 HloElementTypeConverter type_converter(BF16, F32); in TEST_F() local
44 TF_ASSERT_OK_AND_ASSIGN(bool converted, type_converter.Run(module.get())); in TEST_F()
59 HloElementTypeConverter type_converter(BF16, F32); in TEST_F() local
60 TF_ASSERT_OK_AND_ASSIGN(bool converted, type_converter.Run(module.get())); in TEST_F()
78 HloElementTypeConverter type_converter(BF16, F32); in TEST_F() local
79 TF_ASSERT_OK_AND_ASSIGN(bool converted, type_converter.Run(module.get())); in TEST_F()
106 HloElementTypeConverter type_converter(BF16, F32); in TEST_F() local
107 TF_ASSERT_OK_AND_ASSIGN(bool converted, type_converter.Run(module.get())); in TEST_F()
130 HloElementTypeConverter type_converter(BF16, F32); in TEST_F() local
131 TF_ASSERT_OK_AND_ASSIGN(bool converted, type_converter.Run(module.get())); in TEST_F()
[all …]
/external/python/parse_type/tests/
Dparse_type_test.py90 def ensure_can_parse_all_enum_values(self, parser, type_converter, argument
93 for value_name, value in type_converter.mappings.items():
97 def ensure_can_parse_all_choices(self, parser, type_converter, schema, name): argument
98 transform = getattr(type_converter, "transform", None)
99 for choice_value in type_converter.choices:
107 def ensure_can_parse_all_choices2(self, parser, type_converter, schema, name): argument
108 transform = getattr(type_converter, "transform", None)
109 for index, choice_value in enumerate(type_converter.choices):
Dtest_cardinality_field.py156 type_converter=parse_number)
/external/python/parse_type/parse_type/
Dcardinality_field.py94 def create_type_variant(cls, type_name, type_converter): argument
124 if isinstance(type_converter, dict):
125 type_dict = type_converter
126 type_converter = type_dict.get(primary_name, None)
127 if not type_converter:
130 assert callable(type_converter)
132 type_converter,
Dparse.py977 type_converter = self._extra_types[type]
978 s = getattr(type_converter, 'pattern', r'.+?')
979 regex_group_count = getattr(type_converter, 'regex_group_count', 0)
985 return type_converter(string)
/external/llvm-project/mlir/test/lib/Transforms/
DTestConvertCallOp.cpp46 LLVMTypeConverter type_converter(m.getContext()); in runOnOperation() local
47 type_converter.addConversion([&](test::TestType type) { in runOnOperation()
53 populateStdToLLVMConversionPatterns(type_converter, patterns); in runOnOperation()
54 patterns.insert<TestTypeProducerOpConverter>(type_converter); in runOnOperation()
/external/tensorflow/tensorflow/compiler/mlir/tools/kernel_gen/transforms/
Dtf_kernel_to_llvm_pass.cc52 ConvertLaunchFuncOpToTfRuntimeCallPattern(LLVMTypeConverter &type_converter, in ConvertLaunchFuncOpToTfRuntimeCallPattern() argument
54 : ConvertOpToLLVMPattern<gpu::LaunchFuncOp>(type_converter), in ConvertLaunchFuncOpToTfRuntimeCallPattern()
249 LLVMTypeConverter type_converter(ctx); in runOnOperation() local
250 type_converter.addConversion([&](tf_framework::OpKernelContextType type) { in runOnOperation()
258 populateStdToLLVMConversionPatterns(type_converter, patterns); in runOnOperation()
259 populateComplexToLLVMConversionPatterns(type_converter, patterns); in runOnOperation()
260 tf_framework::PopulateTFFrameworkToLLVMConversionPatterns(&type_converter, in runOnOperation()
263 type_converter, blob_annotation_); in runOnOperation()
/external/python/parse_type/
DCHANGES.txt14 * RENAMED: type_converter.regex_group_count attribute (was: .group_count)