Skip to content
This repository was archived by the owner on Jan 15, 2024. It is now read-only.

Commit 4141e89

Browse files
author
Sheng Zha
committed
not using master for doc build until bugs are fixed
1 parent 177cbac commit 4141e89

File tree

7 files changed

+44
-43
lines changed

7 files changed

+44
-43
lines changed

ci/install_dep.sh

Lines changed: 0 additions & 5 deletions
This file was deleted.

ci/jenkins/Jenkinsfile_py3-master_gpu_doc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ utils.assign_node_labels(linux_gpu: 'linux-gpu', linux_cpu: 'linux-cpu')
3434
utils.main_wrapper(
3535
core_logic: {
3636
utils.parallel_stage('Doc Test', [
37-
build_steps.test_doctest('gluon-nlp-gpu-py3-master', 'gpu/py3-master',
37+
build_steps.test_doctest('gluon-nlp-cpu-py3', 'cpu/py3',
3838
'src/gluonnlp', 'src/gluonnlp', 4)
3939
])
4040

4141
utils.parallel_stage('Documentation', [
42-
build_steps.create_website('gluon-nlp-gpu-py3-master', 'gpu/py3-master')
42+
build_steps.create_website('gluon-nlp-gpu-py3', 'gpu/py3')
4343
])
4444

4545
utils.parallel_stage('Deploy', [

ci/step_documentation.sh

Lines changed: 0 additions & 17 deletions
This file was deleted.

ci/step_sanity_check.sh

Lines changed: 0 additions & 3 deletions
This file was deleted.

env/cpu/py3.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,21 @@ dependencies:
1414
- pytest-cov=2.6.0
1515
- mock<3
1616
- pytest-xdist<2
17+
- recommonmark
18+
- pandoc=1.19.2
19+
- notedown
20+
- numba>=v0.40.0
21+
- nbsphinx>=0.3.4,<0.4
22+
- nbconvert=5.4.0
23+
- tornado=5.1.1
24+
- ipython
25+
- ipykernel
1726
- pip:
1827
- pylint-quotes<0.2
1928
- mxnet-mkl>=1.4.0
2029
- sacremoses
2130
- sentencepiece<0.2
31+
- https://github.com/mli/mx-theme/archive/0.3.1.tar.gz
32+
- seaborn
33+
- jieba
34+
- sphinx-autorun

env/gpu/py3.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,21 @@ dependencies:
1414
- pytest-cov=2.6.0
1515
- mock<3
1616
- pytest-xdist<2
17+
- recommonmark
18+
- pandoc=1.19.2
19+
- notedown
20+
- numba>=v0.40.0
21+
- nbsphinx>=0.3.4,<0.4
22+
- nbconvert=5.4.0
23+
- tornado=5.1.1
24+
- ipython
25+
- ipykernel
1726
- pip:
1827
- pylint-quotes<0.2
1928
- mxnet-cu92mkl>=1.4.0
2029
- sacremoses
2130
- sentencepiece<0.2
31+
- https://github.com/mli/mx-theme/archive/0.3.1.tar.gz
32+
- seaborn
33+
- jieba
34+
- sphinx-autorun

src/gluonnlp/model/utils.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -56,26 +56,26 @@ def apply_weight_drop(block, local_param_regex, rate, axes=(),
5656
>>> gluonnlp.model.apply_weight_drop(net, r'.*h2h_weight', 0.5)
5757
>>> net.collect_params()
5858
lstm0_ (
59-
Parameter lstm0_l0_i2h_weight (shape=(40, 0), dtype=float32)
60-
WeightDropParameter lstm0_l0_h2h_weight (shape=(40, 10), dtype=float32, \
59+
Parameter lstm0_l0_i2h_weight (shape=(40, 0), dtype=<class 'numpy.float32'>)
60+
WeightDropParameter lstm0_l0_h2h_weight (shape=(40, 10), dtype=<class 'numpy.float32'>, \
6161
rate=0.5, mode=training)
62-
Parameter lstm0_l0_i2h_bias (shape=(40,), dtype=float32)
63-
Parameter lstm0_l0_h2h_bias (shape=(40,), dtype=float32)
64-
Parameter lstm0_r0_i2h_weight (shape=(40, 0), dtype=float32)
65-
WeightDropParameter lstm0_r0_h2h_weight (shape=(40, 10), dtype=float32, \
62+
Parameter lstm0_l0_i2h_bias (shape=(40,), dtype=<class 'numpy.float32'>)
63+
Parameter lstm0_l0_h2h_bias (shape=(40,), dtype=<class 'numpy.float32'>)
64+
Parameter lstm0_r0_i2h_weight (shape=(40, 0), dtype=<class 'numpy.float32'>)
65+
WeightDropParameter lstm0_r0_h2h_weight (shape=(40, 10), dtype=<class 'numpy.float32'>, \
6666
rate=0.5, mode=training)
67-
Parameter lstm0_r0_i2h_bias (shape=(40,), dtype=float32)
68-
Parameter lstm0_r0_h2h_bias (shape=(40,), dtype=float32)
69-
Parameter lstm0_l1_i2h_weight (shape=(40, 20), dtype=float32)
70-
WeightDropParameter lstm0_l1_h2h_weight (shape=(40, 10), dtype=float32, \
67+
Parameter lstm0_r0_i2h_bias (shape=(40,), dtype=<class 'numpy.float32'>)
68+
Parameter lstm0_r0_h2h_bias (shape=(40,), dtype=<class 'numpy.float32'>)
69+
Parameter lstm0_l1_i2h_weight (shape=(40, 20), dtype=<class 'numpy.float32'>)
70+
WeightDropParameter lstm0_l1_h2h_weight (shape=(40, 10), dtype=<class 'numpy.float32'>, \
7171
rate=0.5, mode=training)
72-
Parameter lstm0_l1_i2h_bias (shape=(40,), dtype=float32)
73-
Parameter lstm0_l1_h2h_bias (shape=(40,), dtype=float32)
74-
Parameter lstm0_r1_i2h_weight (shape=(40, 20), dtype=float32)
75-
WeightDropParameter lstm0_r1_h2h_weight (shape=(40, 10), dtype=float32, \
72+
Parameter lstm0_l1_i2h_bias (shape=(40,), dtype=<class 'numpy.float32'>)
73+
Parameter lstm0_l1_h2h_bias (shape=(40,), dtype=<class 'numpy.float32'>)
74+
Parameter lstm0_r1_i2h_weight (shape=(40, 20), dtype=<class 'numpy.float32'>)
75+
WeightDropParameter lstm0_r1_h2h_weight (shape=(40, 10), dtype=<class 'numpy.float32'>, \
7676
rate=0.5, mode=training)
77-
Parameter lstm0_r1_i2h_bias (shape=(40,), dtype=float32)
78-
Parameter lstm0_r1_h2h_bias (shape=(40,), dtype=float32)
77+
Parameter lstm0_r1_i2h_bias (shape=(40,), dtype=<class 'numpy.float32'>)
78+
Parameter lstm0_r1_h2h_bias (shape=(40,), dtype=<class 'numpy.float32'>)
7979
)
8080
>>> ones = mx.nd.ones((3, 4, 5))
8181
>>> net.initialize()

0 commit comments

Comments
 (0)