-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add initializers and BaseModule for unified parameter initialization (#…
…780) * add initializers and BaseModule for unified parameter initialization * fix circle import * bug fix * add is_init flag in BaseModule * fix docstring * sort import and fix doc format * fix bug * fix docformat and double quote string * fix import sort * import sort * sort import * revise according to comments * fix doc format * revise according to comments * revise import and fix typo * polish code * revise minors * revice minors * revise apply function * revise bias initialization with probability * add type test for bias_prob * revise minors
- Loading branch information
Showing
12 changed files
with
1,039 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
# Copyright (c) Open-MMLab. All rights reserved. | ||
from .flops_counter import get_model_complexity_info | ||
from .fuse_conv_bn import fuse_conv_bn | ||
from .weight_init import (bias_init_with_prob, caffe2_xavier_init, | ||
constant_init, kaiming_init, normal_init, | ||
from .weight_init import (INITIALIZERS, ConstantInit, KaimingInit, NormalInit, | ||
PretrainedInit, UniformInit, XavierInit, | ||
bias_init_with_prob, caffe2_xavier_init, | ||
constant_init, initialize, kaiming_init, normal_init, | ||
uniform_init, xavier_init) | ||
|
||
__all__ = [ | ||
'get_model_complexity_info', 'bias_init_with_prob', 'caffe2_xavier_init', | ||
'constant_init', 'kaiming_init', 'normal_init', 'uniform_init', | ||
'xavier_init', 'fuse_conv_bn' | ||
'xavier_init', 'fuse_conv_bn', 'initialize', 'INITIALIZERS', | ||
'ConstantInit', 'XavierInit', 'NormalInit', 'UniformInit', 'KaimingInit', | ||
'PretrainedInit' | ||
] |
Oops, something went wrong.