-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[cherry-pick][OpenCL] collection of cherry-picks (#6266)
* [OpenCL] Fix select fp32 compile crash (#6006) * [Pass] Add opencl_kernel_place_correct_pass (#6037) * [OpenCL] Fix invalid arg size in instance_norm (#6064) * [OpenCL][Kernel] Add concat multi inputs kernel except channel is not aligned (#6075) * [OpenCL][Bugfix] Fix target choose in opencl_kernel_place_correct_pass (#6079) * [OpenCL] fix kernel select of concat (#6158) * [OpenCL] BindTargets KOpenCL for conv_conv_fuse_pass (#6125) * test=develop * [UTest] Loose abs_error for group_norm and instance_norm (#6188) * loose group_norm abs_err. test=develop
- Loading branch information
1 parent
bf492d2
commit 3478dfe
Showing
18 changed files
with
685 additions
and
174 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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
#include "lite/core/mir/opencl_kernel_place_correct_pass.h" | ||
#include <memory> | ||
#include "lite/core/mir/pass_registry.h" | ||
|
||
namespace paddle { | ||
namespace lite { | ||
namespace mir { | ||
|
||
void OpenCLKernelPlaceCorrectPass::Apply( | ||
const std::unique_ptr<SSAGraph> &graph) { | ||
CorrectArgumentPlace(graph.get()); | ||
} | ||
|
||
} // namespace mir | ||
} // namespace lite | ||
} // namespace paddle | ||
|
||
REGISTER_MIR_PASS(opencl_kernel_place_correct_pass, | ||
paddle::lite::mir::OpenCLKernelPlaceCorrectPass) | ||
.BindTargets({TARGET(kOpenCL)}); |
Oops, something went wrong.