Searched refs:const_attr (Results 1 – 6 of 6) sorted by relevance
/external/tensorflow/tensorflow/lite/delegates/gpu/common/transformations/ |
D | make_padding_test.cc | 53 ConstTensorAttributes const_attr; in TEST() local 54 const_attr.tensor.shape = BHWC(1, 5, 3, 5); in TEST() 55 const_attr.tensor.data = in TEST() 56 std::vector<float>(const_attr.tensor.shape.DimensionsProduct(), 0); in TEST() 57 const_node->operation.attributes = const_attr; in TEST() 62 const_link->tensor.shape = const_attr.tensor.shape; in TEST()
|
/external/tensorflow/tensorflow/compiler/mlir/tosa/transforms/ |
D | legalize_utils.cc | 182 auto const_attr = DenseElementsAttr::get( in getTosa1DConstTensorTable() local 186 rewriter.create<tosa::ConstOp>(op->getLoc(), const_type, const_attr); in getTosa1DConstTensorTable() 194 auto const_attr = DenseElementsAttr::get(const_type, val); in getTosaConstTensorSingleF32() local 197 rewriter.create<tosa::ConstOp>(op->getLoc(), const_type, const_attr); in getTosaConstTensorSingleF32() 205 auto const_attr = DenseElementsAttr::get(const_type, val); in getTosaConstTensorSingleI32() local 208 rewriter.create<tosa::ConstOp>(op->getLoc(), const_type, const_attr); in getTosaConstTensorSingleI32() 356 auto const_attr = in get1DConstTensor() local 359 auto const_op = rewriter.create<T0>(op->getLoc(), const_type, const_attr); in get1DConstTensor() 370 auto const_attr = in get1DConstTensor() local 374 rewriter.create<tosa::ConstOp>(op->getLoc(), const_type, const_attr); in get1DConstTensor() [all …]
|
/external/elfutils/tests/ |
D | varlocs.c | 392 Dwarf_Attribute const_attr; in print_expr() local 394 if (dwarf_getlocation_attr (attr, expr, &const_attr) != 0) in print_expr() 398 if (dwarf_formblock (&const_attr, &block) != 0) in print_expr() 643 Dwarf_Attribute const_attr; in print_expr() local 644 if (dwarf_getlocation_attr (attr, expr, &const_attr) != 0) in print_expr() 649 if (dwarf_formblock (&const_attr, &block) != 0) in print_expr()
|
/external/tensorflow/tensorflow/compiler/mlir/xla/transforms/ |
D | legalize_tf_with_tf2xla.cc | 542 ElementsAttr const_attr; in GetExprForOperand() local 544 if (defining_op && matchPattern(defining_op, m_Constant(&const_attr))) { in GetExprForOperand() 546 auto status = tensorflow::ConvertToTensor(const_attr, &tensor); in GetExprForOperand()
|
/external/tensorflow/tensorflow/compiler/mlir/xla/ |
D | mlir_hlo_to_hlo.cc | 1262 ElementsAttr const_attr; in Lower() local 1289 if (matchPattern(inst, m_Constant(&const_attr))) { in Lower() 1291 layout = ExtractLayout(inst, const_attr.getType().getRank()); in Lower() 1292 auto literal_or = CreateArrayLiteralFromAttr(const_attr, layout); in Lower()
|
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/ir/ |
D | tf_ops_a_m.cc | 1146 DenseElementsAttr const_attr; in matchAndRewrite() local 1153 const_attr = DenseElementsAttr::get(scalar_tensor_type, in matchAndRewrite() 1159 auto identity_const = rewriter.create<TF::ConstOp>(loc, const_attr); in matchAndRewrite()
|