Home
last modified time | relevance | path

Searched refs:getBoolAttr (Results 1 – 25 of 56) sorted by relevance

123

/external/tensorflow/tensorflow/compiler/mlir/tosa/transforms/
Dconvert_tfl_uint8.cc109 0, true /* signed */, builder.getBoolAttr(narrow_range)))); in matchAndRewrite()
183 0, true /* signed */, builder.getBoolAttr(narrow_range))); in convert_graph_uint8_tensor()
197 builder.getBoolAttr(true), builder.getBoolAttr(false), in convert_graph_uint8_tensor()
198 builder.getBoolAttr(false)); in convert_graph_uint8_tensor()
252 0, true /* signed */, builder.getBoolAttr(narrow_range))); in convert_graph_uint8_tensor()
320 builder.getBoolAttr(true), builder.getBoolAttr(false), in convert_graph_uint8_tensor()
321 builder.getBoolAttr(false)); in convert_graph_uint8_tensor()
Dlegalize_utils.cc43 rewriter.getBoolAttr(true), rewriter.getBoolAttr(double_round), in buildRescale()
44 rewriter.getBoolAttr(false)); in buildRescale()
111 rewriter.getI32ArrayAttr({shift}), rewriter.getBoolAttr(true), in buildRescaleOpConvOutput()
112 rewriter.getBoolAttr(true), rewriter.getBoolAttr(false)); in buildRescaleOpConvOutput()
152 rewriter.getI32ArrayAttr(shift_arr), rewriter.getBoolAttr(true), in buildRescaleOpConvOutput()
153 rewriter.getBoolAttr(true), rewriter.getBoolAttr(true)); in buildRescaleOpConvOutput()
/external/llvm-project/mlir/test/lib/Dialect/Tosa/
DTosaTestPasses.cpp83 rewriter.getBoolAttr(narrow_range))); in matchAndRewrite()
171 rewriter.getBoolAttr(true), rewriter.getBoolAttr(true), in matchAndRewrite()
172 rewriter.getBoolAttr(false)); in matchAndRewrite()
/external/llvm-project/mlir/unittests/Pass/
DPassManagerTest.cpp42 op.setAttr("isFunc", builder.getBoolAttr(ga.isFunc)); in runOnOperation()
43 op.setAttr("isSecret", builder.getBoolAttr(sa.isSecret)); in runOnOperation()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/utils/
Dconvert_attr.cc41 return builder->getBoolAttr(value.b()); in ConvertNonFuncAttributeValue()
60 attrs.push_back(builder->getBoolAttr(item)); in ConvertNonFuncAttributeValue()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Dfunctional_control_flow_to_cfg.cc68 /*Truncate=*/builder->getBoolAttr(false)); in CallFn()
92 /*Truncate=*/builder->getBoolAttr(false)); in PrepareValsForJump()
125 /*Truncate=*/builder->getBoolAttr(false)); in ReplaceOpResultWithBlockArgs()
Dtf_data_optimization.cc42 batchInputOp.num_parallel_calls(), rewriter.getBoolAttr(false)); in matchAndRewrite()
Dunroll_batch_matmul.cc171 auto false_attr = rewriter.getBoolAttr(false); in createMatMulOps()
252 auto false_attr = rewriter.getBoolAttr(false); in matchAndRewrite()
Dfunctional_control_flow_to_regions.cc76 /*Truncate=*/builder.getBoolAttr(false)); in CreateCall()
Deinsum.cc337 op.getLoc(), matmul_type, lhs, rhs, rewriter.getBoolAttr(false), in rewriteToBatchMatmul()
338 rewriter.getBoolAttr(false)); in rewriteToBatchMatmul()
Dtpu_dynamic_layout_pass.cc153 builder->getNamedAttr("is_output", builder->getBoolAttr(false))}); in BuildGetLayout()
/external/tensorflow/tensorflow/compiler/mlir/xla/ir/
Dmlir_hlo_builder.cc150 /*has_side_effect=*/builder_.getBoolAttr(has_side_effect), in CustomCallInternal()
253 builder_.getI64IntegerAttr(dimension), builder_.getBoolAttr(is_stable)); in SortInternal()
310 builder_.getBoolAttr(indices_are_sorted), in ScatterInternal()
311 builder_.getBoolAttr(unique_indices)); in ScatterInternal()
449 builder_.getBoolAttr(options.left_side()), in TriangularSolveInternal()
450 builder_.getBoolAttr(options.lower()), in TriangularSolveInternal()
451 builder_.getBoolAttr(options.unit_diagonal()), in TriangularSolveInternal()
463 loc_, result_ty, GetValue(a), builder_.getBoolAttr(lower)); in CholeskyInternal()
/external/tensorflow/tensorflow/compiler/mlir/xla/
Dhlo_function_importer.cc325 builder_->getBoolAttr(custom_call->custom_call_has_side_effect()))); in ImportInstructionImpl()
343 builder_->getBoolAttr(instruction->cholesky_options().lower()))); in ImportInstructionImpl()
360 builder_->getBoolAttr(gather_instruction->indices_are_sorted()))); in ImportInstructionImpl()
438 builder_->getBoolAttr(scatter->indices_are_sorted()))); in ImportInstructionImpl()
440 "unique_indices", builder_->getBoolAttr(scatter->unique_indices()))); in ImportInstructionImpl()
497 builder_->getBoolAttr(sort_instruction->is_stable())); in ImportInstructionImpl()
641 builder_->getBoolAttr( in ImportInstructionImpl()
644 "lower", builder_->getBoolAttr( in ImportInstructionImpl()
648 builder_->getBoolAttr( in ImportInstructionImpl()
/external/tensorflow/tensorflow/compiler/mlir/xla/transforms/
Dmhlo_to_lhlo_with_xla.cc421 sort.is_stableAttr(builder_.getBoolAttr(sort_instr->is_stable())); in EmitSortOp()
570 builder_.getBoolAttr(scatter_instr->indices_are_sorted())); in EmitScatterOp()
572 builder_.getBoolAttr(scatter_instr->unique_indices())); in EmitScatterOp()
656 cholesky_op.is_lowerAttr(builder_.getBoolAttr(options.lower())); in EmitCholesky()
782 builder_.getBoolAttr(backend_config.tensor_ops_enabled()), in EmitDnnConvolution()
1041 op.constrain_layoutAttr(builder.getBoolAttr(collective->constrain_layout())); in SetupCommonCollectiveOpAttributes()
1069 builder_.getBoolAttr(all_gather->use_global_device_ids())); in EmitAllGatherOp()
1083 builder_.getBoolAttr(all_reduce->use_global_device_ids())); in EmitAllReduceOp()
1305 triangular_solve.left_sideAttr(builder_.getBoolAttr(options.left_side())); in EmitTriangularSolveOp()
1306 triangular_solve.lowerAttr(builder_.getBoolAttr(options.lower())); in EmitTriangularSolveOp()
[all …]
/external/tensorflow/tensorflow/compiler/mlir/lite/transforms/
Dlegalize_tf.cc127 rewriter.getBoolAttr(false)); in CreateCastToInt32()
282 rewriter.getBoolAttr(false)); in matchAndRewrite()
508 rewriter.getNamedAttr("time_major", rewriter.getBoolAttr(true))); in matchAndRewrite()
566 rewriter.getNamedAttr("time_major", rewriter.getBoolAttr(true))); in matchAndRewrite()
Doptimize.cc396 /*keep_num_dims=*/rewriter.getBoolAttr(fc_op.keep_num_dims())); in matchAndRewrite()
420 rewriter.getBoolAttr(fully_connected_op.keep_num_dims()); in matchAndRewrite()
504 /*keep_num_dims=*/rewriter.getBoolAttr(fc_op.keep_num_dims())); in matchAndRewrite()
Dprepare_quantize.cc186 BoolAttr narrow_range = builder.getBoolAttr(false); in SetInputNodesQuantizationParams()
/external/tensorflow/tensorflow/compiler/mlir/lite/quantization/tensorflow/
Dtf_to_quant.cc111 BoolAttr narrow_range = rewriter.getBoolAttr(tf_op.narrow_range()); in matchAndRewrite()
/external/tensorflow/tensorflow/compiler/mlir/tools/kernel_gen/transforms/
Dtensorflow_abi_knowledge_propagation.cc144 b.getBoolAttr(true)); in runOnFunction()
/external/llvm-project/mlir/lib/Dialect/Affine/Utils/
DUtils.cpp95 ifOp.setAttr(idForIfOp, b.getBoolAttr(true)); in hoistAffineIfOp()
/external/llvm-project/mlir/lib/Conversion/ShapeToStandard/
DShapeToStandard.cpp259 rewriter.create<ConstantOp>(loc, i1Ty, rewriter.getBoolAttr(true)); in matchAndRewrite()
462 Value init = b.create<ConstantOp>(loc, i1Ty, b.getBoolAttr(true)); in matchAndRewrite()
479 Value result = b.create<ConstantOp>(loc, i1Ty, b.getBoolAttr(false)); in matchAndRewrite()
/external/llvm-project/mlir/lib/IR/
DBuilders.cpp90 BoolAttr Builder::getBoolAttr(bool value) { in getBoolAttr() function in Builder
223 values, [this](bool v) -> Attribute { return getBoolAttr(v); })); in getBoolArrayAttr()
/external/llvm-project/mlir/unittests/TableGen/
DOpBuildGen.cpp42 builder.getBoolAttr(true)), in OpBuildGenTest()
/external/tensorflow/tensorflow/compiler/mlir/lite/
Dflatbuffer_operator.cc186 return builder.getBoolAttr(value); in BuildBoolAttr()
/external/llvm-project/mlir/lib/Conversion/SPIRVToLLVM/
DConvertLaunchFuncToLLVMCalls.cpp65 loc, llvmI1Type, builder.getBoolAttr(false)); in copy()

123