-
Notifications
You must be signed in to change notification settings - Fork 55
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
Upsample #115
Upsample #115
Conversation
Thanks for your contribution! |
PR描述直接放docs的PR链接,已经有了的就写 xxx已有映射文档 |
paconvert/api_matcher.py
Outdated
@@ -3645,3 +3645,20 @@ class SizeAverageMatcher(BaseMatcher): | |||
def generate_code(self, kwargs): | |||
process_reduce_and_size_average(kwargs) | |||
return GenericMatcher.generate_code(self, kwargs) | |||
|
|||
|
|||
class UtilsCppExtensionMatcher(BaseMatcher): |
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.
这个直接用genericamatcher,如果你要删掉某个参数,可设置kwargs_change: name: ""
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.
done
tests/test_Tensor_is_sparse.py
Outdated
obj.run(pytorch_code, ["result"]) | ||
|
||
|
||
test_case_1() |
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.
done
paconvert/api_matcher.py
Outdated
@@ -3539,6 +3539,13 @@ def generate_code(self, kwargs): | |||
return GenericMatcher.generate_code(self, kwargs) | |||
|
|||
|
|||
class TensorIsSpareMatcher(BaseMatcher): |
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.
可以起个公用一些的名字,这样其他人也可以复用了
就叫Attribute2Func吧
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.
done
tests/test_nn_Upsample.py
Outdated
result = m(input) | ||
""" | ||
) | ||
obj.run(pytorch_code, unsupport=True, reason="paddle unsupport") |
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.
done
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.
done
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
PR Docs
这些api均有映射文档
PR APIs