Lines Matching full:get

27   RankedTensorType shape = RankedTensorType::get({2, 1}, eltType);
30 DenseElementsAttr splat = DenseElementsAttr::get(shape, splatElt);
34 DenseElementsAttr::get(shape, llvm::ArrayRef({splatElt, splatElt}));
44 IntegerType boolTy = IntegerType::get(&context, 1);
45 RankedTensorType shape = RankedTensorType::get({2, 2}, boolTy);
49 DenseElementsAttr trueSplat = DenseElementsAttr::get(shape, true);
52 DenseElementsAttr falseSplat = DenseElementsAttr::get(shape, false);
58 auto detectedSplat = DenseElementsAttr::get(shape, {true, true, true, true});
61 detectedSplat = DenseElementsAttr::get(shape, {false, false, false, false});
66 IntegerType boolTy = IntegerType::get(&context, 1);
67 RankedTensorType shape = RankedTensorType::get({2, 2}, boolTy);
70 DenseElementsAttr trueSplat = DenseElementsAttr::get(shape, true);
84 auto tensorType = RankedTensorType::get({4}, builder.getI1Type());
89 DenseElementsAttr trueSplat = DenseElementsAttr::get(tensorType, true);
97 IntegerType boolTy = IntegerType::get(&context, 1);
98 RankedTensorType shape = RankedTensorType::get({boolCount}, boolTy);
102 DenseElementsAttr trueSplat = DenseElementsAttr::get(shape, true);
103 DenseElementsAttr falseSplat = DenseElementsAttr::get(shape, false);
110 auto detectedSplat = DenseElementsAttr::get(shape, trueValues);
114 detectedSplat = DenseElementsAttr::get(shape, falseValues);
120 IntegerType boolTy = IntegerType::get(&context, 1);
121 RankedTensorType shape = RankedTensorType::get({6}, boolTy);
125 DenseElementsAttr::get(shape, {false, false, true, false, false, true});
133 IntegerType intTy = IntegerType::get(&context, intWidth);
141 IntegerType intTy = IntegerType::get(&context, 32);
149 IntegerType intTy = IntegerType::get(&context, 85);
150 Attribute value = IntegerAttr::get(intTy, 109);
157 FloatType floatTy = Float32Type::get(&context);
165 FloatType floatTy = Float64Type::get(&context);
173 FloatType floatTy = Float32Type::get(&context);
174 Attribute value = FloatAttr::get(floatTy, 10.0);
181 FloatType floatTy = BFloat16Type::get(&context);
182 Attribute value = FloatAttr::get(floatTy, 10.0);
191 OpaqueType::get(StringAttr::get(&context, "test"), "string");
200 OpaqueType::get(StringAttr::get(&context, "test"), "string");
201 Attribute stringAttr = StringAttr::get("test-string", stringType);
207 ComplexType complexType = ComplexType::get(Float32Type::get(&context));
214 ComplexType complexType = ComplexType::get(IntegerType::get(&context, 64));
221 ComplexType complexType = ComplexType::get(Float32Type::get(&context));
228 ComplexType complexType = ComplexType::get(IntegerType::get(&context, 64));
236 IntegerType intTy = IntegerType::get(&context, 32);
237 Attribute value = IntegerAttr::get(intTy, elementValue);
238 RankedTensorType shape = RankedTensorType::get({}, intTy);
240 auto attr = DenseElementsAttr::get(shape, llvm::ArrayRef({elementValue}));
247 IntegerType boolTy = IntegerType::get(&context, 1);
248 IntegerType intTy = IntegerType::get(&context, 32);
249 RankedTensorType shape = RankedTensorType::get({4}, intTy);
252 DenseElementsAttr::get(shape, llvm::ArrayRef({elementValue}))
264 IntegerType boolTy = IntegerType::get(&context, 1);
265 IntegerType intTy = IntegerType::get(&context, 32);
266 RankedTensorType shape = RankedTensorType::get({4}, intTy);
269 DenseElementsAttr::get(shape, llvm::ArrayRef({elementValue}))
286 auto type = RankedTensorType::get(data.size(), elementType);
287 auto attr = AttrT::get(type, "resource",
345 auto type = RankedTensorType::get(data.size(), builder.getI32Type());
346 Attribute i32ResourceAttr = DenseI32ResourceElementsAttr::get(
360 auto type = RankedTensorType::get(data.size(), builder.getI32Type());
361 Attribute i32ResourceAttr = DenseI32ResourceElementsAttr::get(
375 auto type = RankedTensorType::get(data.size(), builder.getI32Type());
378 DenseBoolResourceElementsAttr::get(
391 auto type = RankedTensorType::get(data.size(), builder.getI32Type());
394 DenseBoolResourceElementsAttr::get(
411 IntegerType intTy = IntegerType::get(&context, 32);
412 FloatType floatTy = Float32Type::get(&context);
413 Type stringTy = OpaqueType::get(StringAttr::get(&context, "test"), "string");
415 ShapedType tensorI32 = RankedTensorType::get({2, 2}, intTy);
416 ShapedType tensorF32 = RankedTensorType::get({2, 2}, floatTy);
417 ShapedType tensorString = RankedTensorType::get({2, 2}, stringTy);
420 RankedTensorType::get({1, 2}, IntegerType::get(&context, 64));
422 DenseIntElementsAttr::get(indicesType, {APInt(64, 0), APInt(64, 0)});
424 RankedTensorType intValueTy = RankedTensorType::get({1}, intTy);
425 auto intValue = DenseIntElementsAttr::get(intValueTy, {1});
427 RankedTensorType floatValueTy = RankedTensorType::get({1}, floatTy);
428 auto floatValue = DenseFPElementsAttr::get(floatValueTy, {1.0f});
430 RankedTensorType stringValueTy = RankedTensorType::get({1}, stringTy);
431 auto stringValue = DenseElementsAttr::get(stringValueTy, {StringRef("foo")});
433 auto sparseInt = SparseElementsAttr::get(tensorI32, indices, intValue);
434 auto sparseFloat = SparseElementsAttr::get(tensorF32, indices, floatValue);
436 SparseElementsAttr::get(tensorString, indices, stringValue);
487 test::TestCopyCountAttr::get(&context, std::move(copyCount));
490 test::TestCopyCountAttr::get(&context, std::move(copyCount));
509 Attribute res = test::TestCopyCountAttr::get(&context, std::move(copyCount));