Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit d9951db

Browse files
committed
remove inline
1 parent 4ccb666 commit d9951db

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/operator/tensor/matrix_op-inl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ struct TransposeParam : public dmlc::Parameter<TransposeParam> {
263263
};
264264

265265
template<typename DType, typename xpu>
266-
inline void Transpose2D(const DType *in, DType *out, index_t row, index_t col);
266+
void Transpose2D(const DType *in, DType *out, index_t row, index_t col);
267267

268268
template<typename xpu>
269269
void TransposeImpl(RunContext ctx,

src/operator/tensor/matrix_op.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ inline static bool TransposeStorageType(const nnvm::NodeAttrs& attrs,
313313
* \param col shape of dim 1 of input
314314
*/
315315
template<typename DType, typename cpu>
316-
inline void Transpose2D(const DType *in, DType *out, index_t row, index_t col) {
316+
void Transpose2D(const DType *in, DType *out, index_t row, index_t col) {
317317
// ensure cache line hits and prevent cache miss for any configuration
318318
// L1 cache size to be utilized = 32kb = 2^15
319319
// Largest size of a single unit of any dtype <= 8 byte = 2^3

0 commit comments

Comments
 (0)