You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by sk...@apache.org on 2019/02/08 00:59:01 UTC

[incubator-mxnet] branch master updated: Remove inplace support for ToTensor operator (#14083)

This is an automated email from the ASF dual-hosted git repository.

skm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/master by this push:
     new 2ff8ce0  Remove inplace support for ToTensor operator (#14083)
2ff8ce0 is described below

commit 2ff8ce0fd94525d7ecc602ee7eceb3d31761dc6e
Author: Sandeep Krishnamurthy <sa...@gmail.com>
AuthorDate: Thu Feb 7 16:58:33 2019 -0800

    Remove inplace support for ToTensor operator (#14083)
    
    * Remove stale check for op req type
    
    * Do not register to tensor operator with in place option.
---
 src/operator/image/image_random.cc | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/operator/image/image_random.cc b/src/operator/image/image_random.cc
index fc6b17c..810bffb 100644
--- a/src/operator/image/image_random.cc
+++ b/src/operator/image/image_random.cc
@@ -98,10 +98,6 @@ Example:
 .set_attr<nnvm::FInferShape>("FInferShape", ToTensorShape)
 .set_attr<nnvm::FInferType>("FInferType", ToTensorType)
 .set_attr<FCompute>("FCompute<cpu>", ToTensorOpForward<cpu>)
-.set_attr<nnvm::FInplaceOption>("FInplaceOption",
-  [](const NodeAttrs& attrs) {
-    return std::vector<std::pair<int, int> >{{0, 0}};
-  })
 .set_attr<nnvm::FGradient>("FGradient", ElemwiseGradUseNone{ "_copy" })
 .add_argument("data", "NDArray-or-Symbol", "Input ndarray");