Skip to content

Commit 2fec8c5

Browse files
committed
Polish code
test=develop
1 parent 7f7af5d commit 2fec8c5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

paddle/scripts/paddle_build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ function run_test() {
371371
Running unit tests ...
372372
========================================
373373
EOF
374-
# ctest --output-on-failure
374+
ctest --output-on-failure
375375
# make install should also be test when unittest
376376
make install -j `nproc`
377377
pip install ${INSTALL_PREFIX:-/paddle/build}/opt/paddle/share/wheels/*.whl

python/paddle/fluid/layers/nn.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7504,11 +7504,12 @@ def hash(input, hash_size, num_hash=1, name=None):
75047504
input (Variable): The input variable which is a one-hot word.
75057505
hash_size (int): The space size for hash algorithm.
75067506
num_hash (int): The times of hash, default 1.
7507+
name (str, default None): The name of this layer.
75077508
Returns:
75087509
Variable: The hash result variable which is a LoDTensor.
75097510
Examples:
75107511
.. code-block:: python
7511-
word_dict = paddle.dataset.imdb.word_dict()
7512+
word_dict = paddle.dataset.imdb.word_dict()
75127513
x = fluid.layers.data(shape[1], dtype='int32', lod_level=1)
75137514
out = fluid.layers.hash(input=x, len(word_dict))
75147515
"""

0 commit comments

Comments
 (0)