Skip to content
Snippets Groups Projects
Commit beccb125 authored by Joejiong's avatar Joejiong
Browse files

addconv2d mlir files

parent 651e1199
No related branches found
No related tags found
No related merge requests found
// generate from iree processed alexnet or lenet mlir file
func @conv_2d_input_nchw_filter_fchw(%input: memref<?x?x?x?xf32>, %filter: memref<?x?x?x?xf32>, %output: memref<?x?x?x?xf32>)
{
linalg.conv_2d_nchw_fchw
{
dilations = dense<1> : tensor<2xi64>,
strides = dense<1> : tensor<2xi64>
}
ins(%input, %filter : memref<?x?x?x?xf32>, memref<?x?x?x?xf32>)
outs(%output : memref<?x?x?x?xf32>) -> memref<?x?x?x?xf32>
return
}
\ No newline at end of file
// generate from iree processed mobilenet mlir file
func @conv_2d_input_nhwc_filter_hwcf(%input: memref<?x?x?x?xf32>, %filter: memref<?x?x?x?xf32>, %output: memref<?x?x?x?xf32>)
{
linalg.conv_2d_nhwc_hwcf
{
dilations = dense<1> : tensor<2xi64>,
strides = dense<1> : tensor<2xi64>
}
ins(%input, %filter : memref<?x?x?x?xf32>, memref<?x?x?x?xf32>)
outs(%output : memref<?x?x?x?xf32>) -> memref<?x?x?x?xf32>
return
}
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment