Skip to content

Commit b5ae26f

Browse files
JacobSzwejbkafacebook-github-bot
authored andcommitted
delete duplicated declaration (#256)
Summary: Pull Request resolved: #256 Method declarations appear twice in this file. Probably a rebase issue Reviewed By: cccclai Differential Revision: D49030241 fbshipit-source-id: 95b48f6deec00a8884ca0f38d3a90072a359e92c
1 parent d84d902 commit b5ae26f

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

runtime/core/exec_aten/util/tensor_util.h

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -927,6 +927,7 @@ void reset_data_ptr(const exec_aten::Tensor& tensor);
927927
__ET_NODISCARD Error resize_tensor_impl(
928928
exec_aten::TensorImpl* impl,
929929
exec_aten::ArrayRef<exec_aten::SizesType> new_sizes);
930+
930931
} // namespace internal
931932

932933
/**
@@ -1023,26 +1024,5 @@ inline size_t calculate_linear_index(
10231024
return index;
10241025
}
10251026

1026-
/// These APIs should not be used outside of Executor.cpp.
1027-
namespace internal {
1028-
/**
1029-
* Share t_src's data_ptr with t_dst.
1030-
*/
1031-
__ET_NODISCARD Error share_tensor_data(
1032-
const exec_aten::Tensor& t_dst,
1033-
const exec_aten::Tensor& t_src);
1034-
1035-
/**
1036-
* Copy t_src's data_ptr to t_dst.
1037-
*/
1038-
__ET_NODISCARD Error copy_tensor_data(
1039-
const exec_aten::Tensor& t_dst,
1040-
const exec_aten::Tensor& t_src);
1041-
1042-
/**
1043-
* Reset tensor's data_ptr, clear all the storage for at::Tensor.
1044-
*/
1045-
void reset_data_ptr(const exec_aten::Tensor& tensor);
1046-
} // namespace internal
10471027
} // namespace executor
10481028
} // namespace torch

0 commit comments

Comments
 (0)