-
Notifications
You must be signed in to change notification settings - Fork 663
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump llvm to llvm/llvm-project@a58e774 (#19863)
Bump llvm to llvm/llvm-project@a58e774 with cherry picks: llvm/llvm-project@b108fbe llvm/llvm-project@4eb7c34 llvm/llvm-project@3a1e157 Bump torch-mlir to llvm/torch-mlir@eefc553ffca45fd243 Bump stablehlo to openxla/stablehlo@8993ef70
- Loading branch information
Showing
8 changed files
with
18 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
func.func @tensor_float() { | ||
%0 = util.unfoldable_constant dense<[1.0, 0.0, 3.0, 4.0]> : tensor<4xf32> | ||
%1 = util.unfoldable_constant dense<[5.0, 6.0, -3.0, 8.0]> : tensor<4xf32> | ||
%result = tosa.mul %0, %1 {shift = 0 : i8} : (tensor<4xf32>, tensor<4xf32>) -> tensor<4xf32> | ||
%shift = "tosa.const"() {value = dense<0> : tensor<1xi8>} : () -> tensor<1xi8> | ||
%result = tosa.mul %0, %1, %shift : (tensor<4xf32>, tensor<4xf32>, tensor<1xi8>) -> tensor<4xf32> | ||
check.expect_almost_eq_const(%result, dense<[5.0, 0.0, -9.0, 32.0]> : tensor<4xf32>) : tensor<4xf32> | ||
return | ||
} | ||
|
||
func.func @tensor_int() { | ||
%0 = util.unfoldable_constant dense<[1, 0, 3, 4]> : tensor<4xi32> | ||
%1 = util.unfoldable_constant dense<[5, 6, -3, 8]> : tensor<4xi32> | ||
%result = tosa.mul %0, %1 {shift = 0 : i8} : (tensor<4xi32>, tensor<4xi32>) -> tensor<4xi32> | ||
%shift = "tosa.const"() {value = dense<0> : tensor<1xi8>} : () -> tensor<1xi8> | ||
%result = tosa.mul %0, %1, %shift : (tensor<4xi32>, tensor<4xi32>, tensor<1xi8>) -> tensor<4xi32> | ||
check.expect_eq_const(%result, dense<[5, 0, -9, 32]> : tensor<4xi32>) : tensor<4xi32> | ||
return | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule llvm-project
updated
715 files
Submodule stablehlo
updated
3 files
+17 −1 | docs/awesome.md | |
+1 −1 | stablehlo/dialect/Version.cpp | |
+1 −1 | stablehlo/dialect/Version.h |
Submodule torch-mlir
updated
9 files