Skip to content

Commit bcc8bca

Browse files
committed
run ci
1 parent bfa9fef commit bcc8bca

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

mlir/test/python/ir/builtin_types.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -371,11 +371,16 @@ def testAbstractShapedType():
371371
# CHECK-LABEL: TEST: testVectorType
372372
@run
373373
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+
374380
with Context(), Location.unknown():
375381
f32 = F32Type.get()
376-
shape = [2, 3]
377-
# CHECK: vector type: vector<2x3xf32>
378-
print("vector type:", VectorType.get(shape, f32))
382+
# CHECK: checked vector type: vector<2x3xf32>
383+
print("checked vector type:", VectorType.get(shape, f32))
379384

380385
none = NoneType.get()
381386
try:

0 commit comments

Comments
 (0)