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

Commit

Permalink
fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
zheng-da committed Sep 12, 2018
1 parent ded2cc2 commit 7e722a9
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/imperative/cached_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1339,10 +1339,7 @@ NNVM_REGISTER_OP(_CachedOp)
const CachedOpPtr& op = nnvm::get<CachedOpPtr>(attrs.parsed);
return op::DefaultSubgraphOpResourceRequest1(op->GetForwardSym());
})
.set_attr<FExecType>("FExecType",
[](const nnvm::NodeAttrs& attrs) {
return ExecType::kSubgraphExec;
})
.set_attr<FExecType>("FExecType", DefaultSubgraphOpExecType)
.add_argument("data", "NDArray-or-Symbol[]", "input data list");

NNVM_REGISTER_OP(_backward_CachedOp)
Expand All @@ -1364,10 +1361,7 @@ NNVM_REGISTER_OP(_backward_CachedOp)
})
.set_attr<FStatefulComputeEx>("FStatefulComputeEx<cpu>", CachedOpBackward)
.set_attr<FStatefulComputeEx>("FStatefulComputeEx<gpu>", CachedOpBackward)
.set_attr<FExecType>("FExecType",
[](const nnvm::NodeAttrs& attrs) {
return ExecType::kSubgraphExec;
})
.set_attr<FExecType>("FExecType", DefaultSubgraphOpExecType)
.set_attr<bool>("TIsLayerOpBackward", true)
.set_attr<bool>("TIsBackward", true);

Expand Down

0 comments on commit 7e722a9

Please sign in to comment.