Skip to content
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

remove fp32 tmp tensor and cast op for initializer.Normal and initializer.Constant #38818

Merged
merged 3 commits into from
Jan 10, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix return None
  • Loading branch information
GuoxiaWang committed Jan 9, 2022
commit 3108d187f119fb2b15e61942152651187118c98a
4 changes: 3 additions & 1 deletion python/paddle/fluid/initializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,9 @@ def __call__(self, var, block=None):

if not framework.in_dygraph_mode():
var.op = op
return op
return op
else:
return None


class TruncatedNormalInitializer(Initializer):
Expand Down