We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfa9fef commit bcc8bcaCopy full SHA for bcc8bca
mlir/test/python/ir/builtin_types.py
@@ -371,11 +371,16 @@ def testAbstractShapedType():
371
# CHECK-LABEL: TEST: testVectorType
372
@run
373
def testVectorType():
374
+ shape = [2, 3]
375
+ with Context():
376
+ f32 = F32Type.get()
377
+ # CHECK: unchecked vector type: vector<2x3xf32>
378
+ print("unchecked vector type:", VectorType.get_unchecked(shape, f32))
379
+
380
with Context(), Location.unknown():
381
f32 = F32Type.get()
- shape = [2, 3]
- # CHECK: vector type: vector<2x3xf32>
- print("vector type:", VectorType.get(shape, f32))
382
+ # CHECK: checked vector type: vector<2x3xf32>
383
+ print("checked vector type:", VectorType.get(shape, f32))
384
385
none = NoneType.get()
386
try:
0 commit comments