-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update some doc about API reference. #11495
Conversation
qingqing01
commented
Jun 14, 2018
•
edited
Loading
edited
- Dropout
- L2Norm
- GRU
- Lstmp
- gaussian_random_batch_size_like
- random_data_generator
- box_coder
- save_combine
and height respectively. Similarly, `px`, `py`, `pw`, `ph` denote the | ||
priorbox's (anchor) center coordinates, width and height. `pxv`, `pyv`, `pwv`, | ||
`phv` denote the variance of the priorbox and `ox`, `oy`, `ow`, `oh` denote the | ||
encoded/decoded coordinates, width and height. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
Used to initialize tensors with gaussian random generator. | ||
The defalut mean of the distribution is 0. and defalut standard | ||
deviation (std) of the distribution is 1.. Uers can set mean and std | ||
by input arguments. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hidden_dim = 512 | ||
x = fluid.layers.fc(input=data, size=hidden_dim * 3) | ||
x = fluid.layers.fc(input=emb, size=hidden_dim * 3) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
data = fluid.layers.data(name="data", | ||
shape=(3, 17, 13), | ||
dtype="float32") | ||
normed = fluid.layers.l2_normalize(x=data, axis=1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
v2 = fluid.layers.data(name="data", | ||
shape=(6, 8, 4), | ||
dtype="float32") | ||
normed = fluid.layers.save_combine([v1, v2], file_path="output") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
该op在内部用,感觉用户不太需要,就没有暴露出来。
python/paddle/fluid/layers/nn.py
Outdated
x = fluid.layers.data(name="data", shape=[32, 32], dtype="float32") | ||
droped = fluid.layers.dropout(input=x, dropout_rate=0.5) | ||
x = fluid.layers.data(name="data", shape=[32, 32], dtype="float32") | ||
droped = fluid.layers.dropout(input=x, dropout_rate=0.5) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@reyoung Done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent!