Skip to content

Commit

Permalink
add missing & in const reference
Browse files Browse the repository at this point in the history
  • Loading branch information
MingMingShangTian committed Nov 2, 2021
1 parent b630919 commit 3e2d016
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddle/pten/core/kernel_registry.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ struct KernelArgsParseFunctor<Return_ (*)(Args_...)> {
args_def->AppendInput(
default_key.backend(), default_tensor_layout, default_key.dtype());
} else if (arg_type ==
std::type_index(typeid(const std::vector<DenseTensor>))) {
std::type_index(typeid(const std::vector<DenseTensor>&))) {
args_def->AppendInput(
default_key.backend(), default_tensor_layout, default_key.dtype());
} else if (arg_type == std::type_index(typeid(DenseTensor*))) {
Expand Down

0 comments on commit 3e2d016

Please sign in to comment.