mirror of https://github.com/llvm/torch-mlir
Add test case for !numpy.ndarray.
parent
efe8915901
commit
b2708e4687
|
@ -0,0 +1,13 @@
|
|||
// RUN: npcomp-opt -split-input-file %s | npcomp-opt | FileCheck --dump-input=fail %s
|
||||
|
||||
// CHECK-LABEL: @ndarray_no_dtype
|
||||
// CHECK: !numpy.ndarray<?>
|
||||
func @ndarray_no_dtype(%arg0 : !numpy.ndarray<?>) -> !numpy.ndarray<?> {
|
||||
return %arg0 : !numpy.ndarray<?>
|
||||
}
|
||||
|
||||
// CHECK-LABEL: @ndarray_dtype
|
||||
// CHECK: !numpy.ndarray<i32>
|
||||
func @ndarray_dtype(%arg0 : !numpy.ndarray<i32>) -> !numpy.ndarray<i32> {
|
||||
return %arg0 : !numpy.ndarray<i32>
|
||||
}
|
Loading…
Reference in New Issue