Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MLIR support #1043

Closed
victorygogogo opened this issue Feb 6, 2023 · 4 comments
Closed

MLIR support #1043

victorygogogo opened this issue Feb 6, 2023 · 4 comments
Labels

Comments

@victorygogogo
Copy link

how to support mlir file about netron? 

@lutzroeder lutzroeder changed the title how to support mlir file ? MLIR support Feb 6, 2023
@lutzroeder
Copy link
Owner

@victorygogogo can you provide some context. Are you trying to create a pull request to to add MLIR support? Can you share a sample model file, how it was created and how it is used.

@victorygogogo
Copy link
Author

mlir file content as flow:
module {
func.func @test_onnx_conv_simple_pattern(%arg0: tensor<5x3x32x32xf32>, %arg1: tensor<?x3x2x2xf32>) -> tensor<5x?x31x31xf32> {
%0 = "onnx.NoValue"() {value} : () -> none
%1 = "onnx.Conv"(%arg0, %arg1, %0) {auto_pad = "NOTSET", kernel_shape = [2, 2], pads = [0, 0, 0, 0]} : (tensor<5x3x32x32xf32>, tensor<?x3x2x2xf32>, none) -> tensor<5x?x31x31xf32>
return %1 : tensor<5x?x31x31xf32>
}
}
I am trying to find some tool to support mlir file to visualize as netron, if netron support is best.

@lutzroeder
Copy link
Owner

lutzroeder commented Feb 7, 2023

@victorygogogo can you implement MLIR support and submit a pull request. Both a JavaScript parser and code to translate into objects for visualization can be added to mlir.js.

@lutzroeder
Copy link
Owner

Duplicate of #1044

@lutzroeder lutzroeder marked this as a duplicate of #1044 Feb 7, 2023
@lutzroeder lutzroeder closed this as not planned Won't fix, can't repro, duplicate, stale Feb 7, 2023
lutzroeder added a commit that referenced this issue Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants