Skip to content

Instantly share code, notes, and snippets.

@tucan9389
Created May 1, 2023 04:57
Show Gist options
  • Save tucan9389/1dedd3dc8ae548f7a67d4210718dad85 to your computer and use it in GitHub Desktop.
Save tucan9389/1dedd3dc8ae548f7a67d4210718dad85 to your computer and use it in GitHub Desktop.
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>
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment