split_op for npu#34699
Merged
gongweibao merged 5 commits intoPaddlePaddle:developfrom Aug 11, 2021
sljlp:split_op_for_npu
Merged
split_op for npu#34699gongweibao merged 5 commits intoPaddlePaddle:developfrom sljlp:split_op_for_npu
gongweibao merged 5 commits intoPaddlePaddle:developfrom
sljlp:split_op_for_npu
Conversation
|
Thanks for your contribution! |
wangxicoding
reviewed
Aug 9, 2021
Contributor
There was a problem hiding this comment.
用platform::errors::Unimplemented吧
Contributor
There was a problem hiding this comment.
platform::errors::Unimplemented
wangxicoding
reviewed
Aug 9, 2021
| static_cast<int>(in->dims().size()))); | ||
|
|
||
| // TODO(liupeng51): | ||
| // auto sections_tensor_list = |
| std::vector<int> sections = ctx.Attr<std::vector<int>>("sections"); | ||
| int axis = ctx.Attr<int>("axis"); | ||
|
|
||
| // auto in_dims = in->dims(); |
zhiqiu
reviewed
Aug 11, 2021
Comment on lines
+1
to
+10
| /* 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. */ |
Contributor
There was a problem hiding this comment.
Plz check the copyright format.
| } | ||
|
|
||
| PADDLE_ENFORCE_EQ( | ||
| axis >= 0 && axis < in->dims().size(), true, |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR types
Performance optimization
PR changes
OPs
Describe
implementation of split_op for npu