提交 c65d2fc3 编写于 作者: S sweetsky0901

add inline

上级 15b1e8e8
......@@ -22,8 +22,9 @@ limitations under the License. */
namespace paddle {
namespace operators {
template <typename Place, typename T>
void transpose_fun(const platform::DeviceContext& context,
const framework::Tensor& src, framework::Tensor* dst) {
inline void transpose_fun(const platform::DeviceContext& context,
const framework::Tensor& src,
framework::Tensor* dst) {
int input_nums = src.dims()[0];
int offset = 0;
for (int j = 0; j < input_nums; ++j) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册