Skip to content

Instantly share code, notes, and snippets.

@tucan9389
Created May 1, 2023 05:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tucan9389/f2204a2291de89c30f084749bef860b3 to your computer and use it in GitHub Desktop.
Save tucan9389/f2204a2291de89c30f084749bef860b3 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