Home
last modified time | relevance | path

Searched refs:getF32Type (Results 1 – 25 of 34) sorted by relevance

12

/external/tensorflow/tensorflow/compiler/mlir/xla/
Dtype_to_shape_test.cc69 EXPECT_EQ(TypeToPrimitiveType(b.getF32Type()), PrimitiveType::F32); in TEST()
80 ShapeUtil::IsScalarWithElementType(TypeToShape(b.getF32Type()), F32)); in TEST()
86 TypeToShape(VectorType::get({8, 128}, b.getF32Type())).ToProto(), in TEST()
102 TypeToShape(MemRefType::get({8, 128}, b.getF32Type())).ToProto(), in TEST()
106 TypeToShape(MemRefType::get({100, 13, 210}, b.getF32Type())).ToProto(), in TEST()
113 VectorType::get({8, 128}, b.getF32Type()))) in TEST()
125 TypeToShape(RankedTensorType::get({8, 128}, b.getF32Type())).ToProto(), in TEST()
131 EXPECT_THAT(TypeToShape(UnrankedTensorType::get(b.getF32Type())).ToProto(), in TEST()
137 {8, 128}, VectorType::get({16, 16}, b.getF32Type()))) in TEST()
161 TypeToShape(RankedTensorType::get({-1, 2, 3}, b.getF32Type()), in TEST()
[all …]
Dhlo_utils.cc231 return builder.getF32Type(); in ConvertPrimitiveTypeToMLIRType()
251 return mlir::ComplexType::get(builder.getF32Type()); in ConvertPrimitiveTypeToMLIRType()
/external/tensorflow/tensorflow/compiler/mlir/lite/utils/
Dlstm_utils_test.cc51 auto input_type = RankedTensorType::get(input_shape, builder->getF32Type()); in createLstmCompositeFunc()
52 auto weight_type = RankedTensorType::get(weight_shape, builder->getF32Type()); in createLstmCompositeFunc()
53 auto bias_type = RankedTensorType::get(bias_shape, builder->getF32Type()); in createLstmCompositeFunc()
55 RankedTensorType::get(projection_shape, builder->getF32Type()); in createLstmCompositeFunc()
57 RankedTensorType::get(layer_norm_scale, builder->getF32Type()); in createLstmCompositeFunc()
58 auto output_type = RankedTensorType::get(output_shape, builder->getF32Type()); in createLstmCompositeFunc()
Dperception_ops_utils_test.cc54 auto input_type = RankedTensorType::get(input_shape, builder->getF32Type()); in createMaxUnpoolingFunc()
56 auto output_type = RankedTensorType::get(output_shape, builder->getF32Type()); in createMaxUnpoolingFunc()
141 auto input_type = RankedTensorType::get({1, 2, 2, 1}, builder_->getF32Type()); in TEST_F()
143 RankedTensorType::get({1, 2, 1, 1}, builder_->getF32Type()); in TEST_F()
Dconvert_type.cc39 return builder.getF32Type(); in ConvertElementType()
57 return mlir::ComplexType::get(builder.getF32Type()); in ConvertElementType()
Dlstm_utils.cc56 auto type = RankedTensorType::get(shape, builder->getF32Type()); in CreateF32SplatConst()
63 auto type = RankedTensorType::get(shape, builder->getF32Type()); in CreatTfF32ConstOp()
64 auto ele_type = RankedTensorType::get({1}, builder->getF32Type()); in CreatTfF32ConstOp()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/utils/
Dconvert_tensor_test.cc47 ConvertTypeToTensorShape(mlir::UnrankedTensorType::get(b.getF32Type())); in TEST()
57 mlir::RankedTensorType::get({-1, 2, 3}, b.getF32Type())); in TEST()
67 mlir::RankedTensorType::get({1, 2, 3}, b.getF32Type())); in TEST()
75 PartialTensorShape output_shape = ConvertTypeToTensorShape(b.getF32Type()); in TEST()
Dconvert_attr.cc39 return builder->getFloatAttr(builder->getF32Type(), value.f()); in ConvertNonFuncAttributeValue()
58 attrs.push_back(builder->getFloatAttr(builder->getF32Type(), item)); in ConvertNonFuncAttributeValue()
Dconvert_type.cc40 *type = builder.getF32Type(); in ConvertDataType()
76 *type = mlir::ComplexType::get(builder.getF32Type()); in ConvertDataType()
/external/tensorflow/tensorflow/compiler/mlir/xla/experimental/conv_emitter/
Dconv_emitter.cc108 return builder.getF32Type(); in GetShapeInfo()
265 location, mlir::MemRefType::get({}, builder.getF32Type())); in CreateNaiveMlirConv()
270 location, mlir::FloatAttr::get(builder.getF32Type(), 0)), in CreateNaiveMlirConv()
327 builder.getF32Type()); in CreateNaiveMlirConv()
341 builder.getF32Type()); in CreateNaiveMlirConv()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Dlower_tf.cc896 RankedTensorType::get(padded_shape, rewriter.getF32Type()); in matchAndRewrite()
1399 loc, RankedTensorType::get({}, rewriter.getF32Type()), in_y); in matchAndRewrite()
1401 loc, RankedTensorType::get({}, rewriter.getF32Type()), out_y); in matchAndRewrite()
1404 loc, RankedTensorType::get({}, rewriter.getF32Type()), in_y_f32, in matchAndRewrite()
1408 loc, GetScalarOfType(rewriter.getF32Type(), 0.0)); in matchAndRewrite()
1410 loc, GetScalarOfType(rewriter.getF32Type(), 1.0)); in matchAndRewrite()
1414 RankedTensorType::get({out_height_constant}, rewriter.getF32Type()), in matchAndRewrite()
1419 RankedTensorType::get({out_height_constant}, rewriter.getF32Type()), in matchAndRewrite()
1442 loc, RankedTensorType::get({}, rewriter.getF32Type()), in_x); in matchAndRewrite()
1444 loc, RankedTensorType::get({}, rewriter.getF32Type()), out_x); in matchAndRewrite()
[all …]
/external/tensorflow/tensorflow/compiler/mlir/lite/quantization/
Dimport_quant_stats_pass.cc150 RankedTensorType::get({2}, b.getF32Type()), {min_maxs[0], min_maxs[1]}); in ImportAsStatsOps()
157 RankedTensorType::get(axis_stats_shape, b.getF32Type()), min_maxs); in ImportAsStatsOps()
/external/tensorflow/tensorflow/compiler/mlir/tosa/transforms/
Dlegalize_utils.cc178 rewriter.getF32Type(), 1.0f, 0, -32768, 32767); in getTosa1DConstTensorTable()
193 auto const_type = RankedTensorType::get({}, rewriter.getF32Type()); in getTosaConstTensorSingleF32()
369 rewriter.getF32Type()); in get1DConstTensor()
/external/llvm-project/mlir/unittests/Dialect/SPIRV/
DSerializationTest.cpp64 llvm::SmallVector<Type, 1> elementTypes{opBuilder.getF32Type()}; in getFloatStructType()
/external/llvm-project/mlir/test/lib/Dialect/Test/
DTestPatterns.cpp292 rewriter.create<ILLegalOpF>(op->getLoc(), rewriter.getF32Type()); in matchAndRewrite()
310 rewriter.create<ILLegalOpF>(op->getLoc(), rewriter.getF32Type()); in matchAndRewrite()
390 rewriter.replaceOpWithNewOp<TestTypeProducerOp>(op, rewriter.getF32Type()); in matchAndRewrite()
881 rewriter.create<ILLegalOpF>(op->getLoc(), rewriter.getF32Type()); in matchAndRewrite()
/external/tensorflow/tensorflow/compiler/mlir/hlo/lib/Dialect/mhlo/transforms/
Dchlo_legalize_to_hlo.cc458 rewriter, loc, operands, rewriter.getF32Type(), in matchAndRewrite()
483 rewriter, loc, operands, rewriter.getF32Type(), in matchAndRewrite()
947 FloatType min_precision_ty = rewriter.getF32Type(); in matchAndRewrite()
960 FloatType min_precision_ty = rewriter.getF32Type(); in matchAndRewrite()
974 FloatType min_precision_ty = rewriter.getF32Type(); in matchAndRewrite()
988 FloatType min_precision_ty = rewriter.getF32Type(); in matchAndRewrite()
Dlegalize_trigonometric_to_approximation.cc57 arg = rewriter.create<FPExtOp>(loc, arg, rewriter.getF32Type()); in matchAndRewrite()
/external/tensorflow/tensorflow/compiler/mlir/lite/transforms/
Ddefault_quant_params.cc221 builder.getF32Type(), is_signed_); in GetDefaultQuantParams()
Dprepare_tf.cc1019 epsilon = rewriter.getFloatAttr(rewriter.getF32Type(), 0.0001f); in matchAndRewrite()
1036 rewriter.getFloatAttr(rewriter.getF32Type(), 1.0f); in matchAndRewrite()
1155 ::mlir::RankedTensorType::get({1}, rewriter.getF32Type()); in matchAndRewrite()
/external/llvm-project/mlir/lib/IR/
DBuilders.cpp49 FloatType Builder::getF32Type() { return FloatType::getF32(context); } in getF32Type() function in Builder
183 return FloatAttr::get(getF32Type(), APFloat(value)); in getF32FloatAttr()
/external/tensorflow/tensorflow/compiler/mlir/lite/
Dflatbuffer_import.cc171 flags, storage_type, builder.getF32Type(), scales, in GetQuantizedType()
176 flags, storage_type, builder.getF32Type(), quant_params.scale.at(0), in GetQuantizedType()
263 mlir::RankedTensorType::get({2}, b.getF32Type()), in ConvertMinMaxToStatsOp()
271 mlir::RankedTensorType::get(axis_stats_shape, b.getF32Type()), in ConvertMinMaxToStatsOp()
/external/llvm-project/mlir/unittests/TableGen/
DOpBuildGen.cpp38 i32Ty(builder.getI32Type()), f32Ty(builder.getF32Type()), in OpBuildGenTest()
/external/llvm-project/mlir/lib/Parser/
DTypeParser.cpp353 return builder.getF32Type(); in parseNonFunctionType()
/external/llvm-project/mlir/include/mlir/IR/
DBuilders.h67 FloatType getF32Type();
/external/tensorflow/tensorflow/compiler/mlir/tfr/passes/
Draise_to_tf.cc141 result_elt_type = rewriter.getF32Type(); in CastToNonDerivedType()

12