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

Commit

Permalink
Fix operator arguments (#4575)
Browse files Browse the repository at this point in the history
* Add missing argument for activation

* Add type name for nnvm::Tuple<int>
  • Loading branch information
Xin Li authored and piiswrong committed Jan 11, 2017
1 parent 2123ac4 commit 0e9f56a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/mxnet/tensor_blob.h
Expand Up @@ -283,6 +283,7 @@ class TBlob {
namespace dmlc {
// Add a few patches to support TShape in dmlc/parameter.
DMLC_DECLARE_TYPE_NAME(mxnet::TShape, "Shape(tuple)");
DMLC_DECLARE_TYPE_NAME(nnvm::Tuple<int>, "Shape(tuple)");

namespace parameter {

Expand Down
1 change: 1 addition & 0 deletions src/operator/activation.cc
Expand Up @@ -77,6 +77,7 @@ scalar of the input tensor):
See `LeakyReLU` for other activations with parameters.
)")
.add_argument("data", "Symbol", "Input data to activation function.")
.add_arguments(ActivationParam::__FIELDS__());

} // namespace op
Expand Down

0 comments on commit 0e9f56a

Please sign in to comment.