From b58725dea16c68de74feee640d0270f9ded9298c Mon Sep 17 00:00:00 2001 From: tqchen Date: Sat, 26 Sep 2015 10:16:20 -0700 Subject: [PATCH] [NDARRAY] removed inline from the op to be registered --- src/ndarray/ndarray.cc | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/ndarray/ndarray.cc b/src/ndarray/ndarray.cc index 121058a95e20..090db36d4ab9 100644 --- a/src/ndarray/ndarray.cc +++ b/src/ndarray/ndarray.cc @@ -25,9 +25,9 @@ namespace mxnet { * \param binary_op the real */ template -inline void BinaryOp(const NDArray &lhs, - const NDArray &rhs, - NDArray *out) { +void BinaryOp(const NDArray &lhs, + const NDArray &rhs, + NDArray *out) { // no check if both of them are on cpu if (lhs.ctx().dev_mask() != cpu::kDevMask || rhs.ctx().dev_mask() != cpu::kDevMask) CHECK(lhs.ctx() == rhs.ctx()) << "operands context mismatch"; @@ -76,7 +76,7 @@ inline void BinaryOp(const NDArray &lhs, } } -inline void SetValueOp(const real_t &rhs, NDArray *out) { +void SetValueOp(const real_t &rhs, NDArray *out) { CHECK_NE(out->is_none(), true) << "Set value target must not be empty"; // important: callback must always capture by value NDArray ret = *out; @@ -112,9 +112,9 @@ inline void SetValueOp(const real_t &rhs, NDArray *out) { * \param binary_op the real */ template -inline void ScalarOp(const NDArray &lhs, - const real_t &rhs, - NDArray *out) { +void ScalarOp(const NDArray &lhs, + const real_t &rhs, + NDArray *out) { if (out->is_none()) { *out = NDArray(lhs.shape(), lhs.ctx(), true); } else { @@ -220,9 +220,9 @@ inline void CopyFromToSimple(const NDArray &from, NDArray *to) { } template -inline void SampleOP(const real_t &a, - const real_t &b, - NDArray *out) { +void SampleOP(const real_t &a, + const real_t &b, + NDArray *out) { CHECK(!out->is_none()); Resource resource = ResourceManager::Get()->Request( out->ctx(), ResourceRequest::kRandom);