llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

`std.tensor_load` yields incorrect error message in the unranked case

Open frgossen opened this issue 6 years ago • 2 comments

Bugzilla Link 46528
Resolution WORKSFORME
Resolved on Dec 14, 2020 17:47
Version unspecified
OS All
CC @jpienaar,@River707

Extended Description

std.tensor_load yields incorrect error message in the unranked case.

The error message observed is:

error: custom op 'std.tensor_load' 'memref' must be memref of any type values, but got 'memref<*xf32>'

Minimal reproducing example:

%t = tensor_load %mem : memref<*xf32>

frgossen avatar Jul 01 '20 11:07 frgossen

$ ./bin/mlir-opt test.mlir module { func @​foo(%arg0: memref<*xf32>) { %0 = tensor_load %arg0 : memref<*xf32> return } }

joker-eph avatar Dec 15 '20 01:12 joker-eph

assigned to @joker-eph

frgossen avatar Jul 01 '20 11:07 frgossen