-
Notifications
You must be signed in to change notification settings - Fork 184
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
[Fea] Add fractional diff #702
[Fea] Add fractional diff #702
Conversation
Thanks for your contribution! |
e882d45
to
2a25c0b
Compare
def gaussian_integrate( | ||
fn: Callable, dim: int, N: int, integration_domains: List[List[float]] | ||
fn: Callable[[Any], paddle.Tensor], |
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.
对应的docstring一起改下
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.
已更新
ppsci/experimental/math_module.py
Outdated
|
||
def _calculate_grid( | ||
N: int, | ||
integration_domains, |
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.
已添加
cfec086
to
0e6cf79
Compare
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
* add fractional diff * refine code * fix(test=document_fix)
PR types
New features
PR changes
APIs
Describe
fractional_diff
和对应文档gaussian_integrate
相关的函数至其函数内部,并加入积分上下限相反时对结果取负数的判断逻辑