diff --git a/paddle/framework/tensor.h b/paddle/framework/tensor.h index d9ceedb453a8f42fe0a4217d151173421804d08d..3e110f8d74938016e3adf48c7ab694175162008a 100644 --- a/paddle/framework/tensor.h +++ b/paddle/framework/tensor.h @@ -103,6 +103,7 @@ class Tensor { * @param[in] begin_idx The begin index of the slice. * @param[in] end_idx The end index of the slice. */ + template inline Tensor Slice(const int& begin_idx, const int& end_idx) const; private: