-
Notifications
You must be signed in to change notification settings - Fork 169
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
[Example] Add ldc 2d Re1000 and Re3200 example #924
[Example] Add ldc 2d Re1000 and Re3200 example #924
Conversation
Thanks for your contribution! |
@@ -468,7 +494,7 @@ def forward_tensor(self, x): | |||
for i, linear in enumerate(self.linears): | |||
y = linear(y) | |||
y = self.acts[i](y) | |||
y = (1 - y) * u + y * v | |||
y = y * u + (1 - y) * v |
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.
这样修改后对之前的案例的权重文件还兼容么
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.
之前没有案例使用这个Modifield_MLP
,PirateNet
的BUG修复后,会影响AllenCahn案例,所以已经重训了AllenCahn模型,精度跟原论文保持一致,我在bce上已经更新了权重文件和结果图。
@@ -119,5 +134,6 @@ def __call__( | |||
self.weight[i].set_value( | |||
self.momentum * self.weight[i] + (1 - self.momentum) * weight[i] | |||
) | |||
# logger.message(f"weight at step {self.step}: {self.weight.numpy()}") |
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.
为啥需要注释掉?
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.
感觉默认情况下可能不太需要打印?
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.
LGTM
* update piranet for ldc re3200 case(WIP) * add ldc_2d_Re1000 plain example * add ldc_2d_Re3200_piratenet and ldc_2d_Re3200_sota * refine code * refine docstrings * add missing blank line for docstrings * refine docstrings * replace lowercase to uppercase for first word in sentence * add ldc_2d_re3200_piratenet and ldc_2d_re3200_sota * remove redundant files * fix linenum * fix doctest * fix for allen_cahn
PR types
New features
PR changes
Others
Describe