-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement a bilinear initializer for transposed convolution to do upsampling. #11404
Conversation
b4d102c
to
74bf241
Compare
'init_on_cpu', 'ConstantInitializer', 'UniformInitializer', | ||
'NormalInitializer', 'XavierInitializer' | ||
'NormalInitializer', 'XavierInitializer', 'BilinearInitializer' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里的排版用改成一列么?
|
||
Raises: | ||
ValueError: If type of `var` and `block` is not right. | ||
If the shape of `var` size is not 4 and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and -> or ?
class BilinearInitializer(Initializer): | ||
"""Implements the bilinear initializer. | ||
|
||
This initializer can be used in transposed convolution operator to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BilinearInitializer强绑定到“用conv_transpose做upsampling”的场景了?
如果我想对普通的parameter做bilinear initializatoin怎么办?
Fix #11403