Skip to content

Commit

Permalink
refine, test=develop
Browse files Browse the repository at this point in the history
  • Loading branch information
wanghuancoder committed Aug 27, 2021
1 parent 8878765 commit 6e82ba9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions paddle/fluid/operators/controlflow/fetch_v2_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ struct float16;
namespace paddle {
namespace operators {

static void DataCopy(const framework::LoDTensor &src_item,
static void DeepCopy(const framework::LoDTensor &src_item,
const std::string &fetch_var_name,
framework::LoDTensor *dst_item) {
if (src_item.IsInitialized() && src_item.numel() > 0) {
Expand Down Expand Up @@ -132,7 +132,7 @@ class FetchV2Kernel {
platform::errors::InvalidArgument(
"Tensor's place of input(X) must be CPUPlace."));
if (deepcopy) {
DataCopy(src_item, fetch_var_name, dst_item);
DeepCopy(src_item, fetch_var_name, dst_item);
} else {
dst_item->ShareDataWith(src_item);
}
Expand All @@ -147,7 +147,7 @@ class FetchV2Kernel {
platform::errors::InvalidArgument(
"Tensor's place of input(X) must be CPUPlace."));
if (deepcopy) {
DataCopy(src_item[i], fetch_var_name, &dst_item[i]);
DeepCopy(src_item[i], fetch_var_name, &dst_item[i]);
} else {
dst_item[i].ShareDataWith(src_item[i]);
}
Expand Down

1 comment on commit 6e82ba9

@paddle-bot-old
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congratulation! Your pull request passed all required CI. You could ask reviewer(s) to approve and merge. 🎉

Please sign in to comment.