-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
【SCU】【Paddle TensorRT No.24】Add pd_op.minimum
converter
#69736
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
python/paddle/tensorrt/impls/math.py
Outdated
def minimum_converter(network, paddle_op, inputs): | ||
x = inputs[0] | ||
y = inputs[1] | ||
x, y = broadcast(network, x, y, a_name="x", b_name="y") |
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.
这个不是拓展,是swap吧
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.
你看旧ir怎么写的
python/paddle/tensorrt/impls/math.py
Outdated
y = inputs[1] | ||
x, y = broadcast(network, x, y, a_name="x", b_name="y") | ||
min_layer = network.add_elementwise(x, y, trt.ElementWiseOperation.MIN) | ||
min_layer.name = f"{x.name}_minimum_{y.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.
这个不需要加名字
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.
已修改
冲突了 |
@@ -410,6 +410,7 @@ def test_trt_result(self): | |||
|
|||
class TestMinimumBroadcastTRTPattern(TensorRTBaseTest): | |||
def setUp(self): | |||
self.python_api = paddle.minimum |
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.
这怎么又测minimum,又测maximum的
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.
这里PR单测名错了,应该是Maximum,需要那边同学重新改一下。我这边仍然用Minimum。https://github.com/PaddlePaddle/Paddle/pull/69835/files
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.
我这边一起改了
这怎么又测minimum,又测maximum的
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.
这里再加一个测fp16的单测吧
Sorry to inform you that 3f8a0a5's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually. |
@lizexu123 这个应该可以了 |
PR Category
User Experience
PR Types
New features
Description
新增了
pd_op.minimum
Marker和Converter