Skip to content

Commit

Permalink
add more attributes. (apache#10296)
Browse files Browse the repository at this point in the history
  • Loading branch information
zheng-da committed Jun 28, 2018
1 parent f06c598 commit 5a35106
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/operator/nn/lrn.cc
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,14 @@ number of kernels in the layer.
.set_attr<nnvm::FInferShape>("FInferShape", LRNShape)
.set_attr<nnvm::FInferType>("FInferType", LRNType)
.set_attr<FInferStorageType>("FInferStorageType", LRNForwardInferStorageType)
.set_attr<nnvm::FListInputNames>("FListInputNames",
[](const NodeAttrs& attrs) {
return std::vector<std::string>{"data"};
})
.set_attr<nnvm::FListInputNames>("FListOutputNames",
[](const NodeAttrs& attrs) {
return std::vector<std::string>{"output", "tmp_norm"};
})
.set_attr<FCompute>("FCompute<cpu>", LRNCompute<cpu>)
#if MXNET_USE_MKLDNN == 1
.set_attr<FComputeEx>("FComputeEx<cpu>", LRNComputeExCPU)
Expand Down

0 comments on commit 5a35106

Please sign in to comment.