Skip to content

Conversation

weixing02
Copy link
Collaborator

fix #9761

@weixing02 weixing02 requested a review from luotao1 April 9, 2018 07:52
Copy link
Contributor

@abhinavarora abhinavarora left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure why we need to do this? Constant == ConstantInitializer, Uniform = UniformInitializer and so on. Could you elaborate why we need this change?

__all__ = [
'Constant', 'Uniform', 'Normal', 'Xavier', 'force_init_on_cpu',
'init_on_cpu'
'ConstantInitializer', 'UniformInitializer', 'NormalInitializer', 'XavierInitializer', 'Constant', 'Uniform', 'Normal', 'Xavier', 'force_init_on_cpu','init_on_cpu'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure why we need to do this? Constant == ConstantInitializer, Uniform = UniformInitializer and so on. Could you elaborate why we need this change

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#9761
The above issue mentions the display error caused by operations like Constant==ConstantInitializer, and the documents are all auto generated by gen_doc.py, which traverses items in __all__. I've asked @reyoung for suggestions and decide to solve this problem by add suffixes to alias name. e.g Constant -> ConstantInitializer and expose both of them.

@luotao1 luotao1 merged commit 2a3d490 into PaddlePaddle:develop Apr 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Some of the topics has no documents because alias.

3 participants