Skip to content

Commit

Permalink
fix docs/architecture/overview.md
Browse files Browse the repository at this point in the history
Fix BinaryShapeFunction typedef
Add a right brace for SmoothL1Shape_
  • Loading branch information
zhaoyao73 committed Dec 4, 2018
1 parent 523db4f commit 4bc8e5f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/architecture/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -567,8 +567,8 @@ let's check input data shape consistency and provide output shape.
```cpp
typedef TShape (*UnaryShapeFunction)(const TShape& src,
const EnvArguments& env);
typedef TShape (*BinaryShapeFunction)(const TShape& const TShape& rhs,lhs,

typedef TShape (*BinaryShapeFunction)(const TShape& lhs,
const TShape& rhs,
const EnvArguments& env);
```
You can use `mshadow::TShape` to check input data shape and designate output data shape.
Expand Down Expand Up @@ -597,6 +597,7 @@ Written explicitly, it is:
inline TShape SmoothL1Shape_(const TShape& src,
const EnvArguments& env) {
return TShape(src);
}
```
### Define Functions
Expand Down

0 comments on commit 4bc8e5f

Please sign in to comment.