-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
243 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
build_tools/ci/cpu_comparison/test_files/conv2d_nchw_bf16.mlir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// These 2 lines are required by the script which generates input data: | ||
// input 2x32x14x14xbf16 | ||
// input 64x32x3x3xbf16 | ||
|
||
func.func @conv_2d_nhwc_hwcf(%arg0: tensor<2x32x14x14xbf16>, %arg1: tensor<64x32x3x3xbf16>) -> tensor<2x64x12x12xf32> { | ||
%cst = arith.constant 0.0 : f32 | ||
%0 = tensor.empty() : tensor<2x64x12x12xf32> | ||
%1 = linalg.fill ins(%cst : f32) outs(%0 : tensor<2x64x12x12xf32>) -> tensor<2x64x12x12xf32> | ||
%2 = linalg.conv_2d_nchw_fchw {dilations = dense<1> : vector<2xi64>, strides = dense<1> : vector<2xi64>} ins(%arg0, %arg1 : tensor<2x32x14x14xbf16>, tensor<64x32x3x3xbf16>) outs(%1 : tensor<2x64x12x12xf32>) -> tensor<2x64x12x12xf32> | ||
return %2 : tensor<2x64x12x12xf32> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.