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

Commit

Permalink
Remove inplace support for ToTensor operator (#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 Feb 8, 2019
1 parent 26ca37c commit 2ff8ce0
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 2ff8ce0

Please sign in to comment.