Skip to content

Commit

Permalink
Remove inplace support for ToTensor operator (apache#14083)
Browse files Browse the repository at this point in the history
* Remove stale check for op req type

* Do not register to tensor operator with in place option.
  • Loading branch information
sandeep-krishnamurthy authored and vdantu committed Mar 31, 2019
1 parent d57cfa8 commit 812a431
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/operator/image/image_random.cc
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,6 @@ with values in the range [0, 1)
.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");

Expand Down

0 comments on commit 812a431

Please sign in to comment.