mirror of
https://gitee.com/fastnlp/fastNLP.git
synced 2024-12-11 10:05:30 +08:00
fix a bug in initial_method function
This commit is contained in:
parent
19332b8b08
commit
5dae0ee497
@ -42,7 +42,7 @@ def initial_parameter(net, initial_method=None):
|
||||
elif initial_method == 'normal':
|
||||
init_method = init.normal_
|
||||
elif initial_method == 'uniform':
|
||||
initial_method = init.uniform_
|
||||
init_method = init.uniform_
|
||||
else:
|
||||
init_method = init.xavier_normal_
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user