add mul in test
This commit is contained in:
parent
e62fa9311f
commit
b0dd7a7518
|
@ -50,9 +50,10 @@ func @main(%1 : memref<*xf32>,%2 : memref<*xf32> ) -> memref<*xf32> {
|
||||||
%in1 = memref.tensor_load %ranked1 : memref<6xf32>
|
%in1 = memref.tensor_load %ranked1 : memref<6xf32>
|
||||||
%in2 = memref.tensor_load %ranked2 : memref<6xf32>
|
%in2 = memref.tensor_load %ranked2 : memref<6xf32>
|
||||||
|
|
||||||
%add = "mhlo.add"(%in1, %in2) {name = "add.3"} : (tensor<6xf32>, tensor<6xf32>) -> tensor<6xf32>
|
%add = "mhlo.multiply"(%in1, %in2) {name = "mul.3"} : (tensor<6xf32>, tensor<6xf32>) -> tensor<6xf32>
|
||||||
|
%mul = "mhlo.add"(%in1, %add) {name = "add.3"} : (tensor<6xf32>, tensor<6xf32>) -> tensor<6xf32>
|
||||||
|
|
||||||
%output = memref.buffer_cast %add : memref<6xf32>
|
%output = memref.buffer_cast %mul : memref<6xf32>
|
||||||
%unranked_output = memref.cast %output : memref<6xf32> to memref<*xf32>
|
%unranked_output = memref.cast %output : memref<6xf32> to memref<*xf32>
|
||||||
|
|
||||||
call @print_memref_f32(%1) : (memref<*xf32>) -> ()
|
call @print_memref_f32(%1) : (memref<*xf32>) -> ()
|
||||||
|
|
Loading…
Reference in New Issue