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:
Tung D. Le 2020-09-02 20:24:41 +09:00 committed by GitHub
parent c1262c184e
commit 930e20f682
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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>