Commit fa900595 authored by zzhang-cn's avatar zzhang-cn
Browse files

_uniform_, constant_ etc.

parent ca0622b2
......@@ -29,8 +29,8 @@ def build_cnn(**config):
kernel_size,
padding=tuple((_ - 1) // 2 for _ in kernel_size),
)
INIT.xavier_uniform(module.weight)
INIT.constant(module.bias, 0)
INIT.xavier_uniform_(module.weight)
INIT.constant_(module.bias, 0)
cnn_list.append(module)
if i < len(filters) - 1:
cnn_list.append(NN.LeakyReLU())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment