-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a simple example for execution order
The text refers to "the example above", but said example is actually near the top of the file (thousands of lines above). The example is also longer than necessary for the purposes of illustrating execution order.
- Loading branch information
Michael Levesque-Dion
committed
Feb 6, 2024
1 parent
d50b6fc
commit 1705de8
Showing
2 changed files
with
18 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
func.func @main() -> tensor<f64> { | ||
%0 = stablehlo.constant dense<1.0> : tensor<f64> | ||
%1 = stablehlo.constant dense<2.0> : tensor<f64> | ||
%2 = stablehlo.add %0, %1 : tensor<f64> | ||
return %2 : tensor<f64> | ||
} |