Syntax highlighting for mlir code in README (#276)
* Syntax highlighting for mlir code in README * Restart Jenkins Co-authored-by: Gheorghe-Teodor Bercea <gt.bercea@gmail.com> Co-authored-by: Alexandre Eichenberger <alexe@us.ibm.com> Co-authored-by: Tian Jin <tjingrant@gmail.com>
This commit is contained in:
parent
c1262c184e
commit
930e20f682
|
@ -236,11 +236,11 @@ These are frontend options.
|
||||||
## Example
|
## Example
|
||||||
|
|
||||||
For example, to lower an ONNX model (e.g., add.onnx) to ONNX dialect, use the following command:
|
For example, to lower an ONNX model (e.g., add.onnx) to ONNX dialect, use the following command:
|
||||||
```
|
```shell
|
||||||
./onnx-mlir --EmitONNXIR add.onnx
|
./onnx-mlir --EmitONNXIR add.onnx
|
||||||
```
|
```
|
||||||
The output should look like:
|
The output should look like:
|
||||||
```
|
```mlir
|
||||||
module {
|
module {
|
||||||
func @main_graph(%arg0: tensor<10x10x10xf32>, %arg1: tensor<10x10x10xf32>) -> tensor<10x10x10xf32> {
|
func @main_graph(%arg0: tensor<10x10x10xf32>, %arg1: tensor<10x10x10xf32>) -> tensor<10x10x10xf32> {
|
||||||
%0 = "onnx.Add"(%arg0, %arg1) : (tensor<10x10x10xf32>, tensor<10x10x10xf32>) -> tensor<10x10x10xf32>
|
%0 = "onnx.Add"(%arg0, %arg1) : (tensor<10x10x10xf32>, tensor<10x10x10xf32>) -> tensor<10x10x10xf32>
|
||||||
|
|
Loading…
Reference in New Issue