From 7a1296d5273cb7d013ead7e615ce0ffa552958ad Mon Sep 17 00:00:00 2001 From: Bing Xu Date: Sun, 21 Jun 2015 12:12:30 -0600 Subject: [PATCH] remove inplace check --- src/operator/activation_op-inl.h | 1 - 1 file changed, 1 deletion(-) diff --git a/src/operator/activation_op-inl.h b/src/operator/activation_op-inl.h index e02da0109aef..2a412ef3b2e1 100644 --- a/src/operator/activation_op-inl.h +++ b/src/operator/activation_op-inl.h @@ -45,7 +45,6 @@ class ActivationOp : public Operator { CHECK(in_data.size() == 1); CHECK(out_grad.size() == 1); CHECK(req.size() == 1); - CHECK(req[0] == kWriteInplace); mshadow::Stream *stream = \ static_cast *>(ctx.stream); mshadow::Tensor grad = grad_next[0].FlatTo2D(stream);