-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
【Prim】 Generate static prim api in both ops.yaml and legacy_ops.yaml #50315
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
f13ef83
to
fa8275a
Compare
def is_tensor_sequence(s): | ||
return s == '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.
目前生成脚本中 Tensor[]
主要是以 tensor_list 命名,这里保持一致比较好些
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
paddle/fluid/prim/api/CMakeLists.txt
Outdated
if(NOT (NOT WITH_PYTHON AND ON_INFER)) | ||
cc_library(eager_prim_api DEPS generated_eager_prim_api manual_eager_prim_api) | ||
endif() | ||
cc_library(static_prim_api DEPS generated_static_prim_api | ||
manual_static_prim_api) | ||
|
||
if(NOT (NOT WITH_PYTHON AND ON_INFER)) | ||
cc_library( |
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
@@ -0,0 +1,157 @@ | |||
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. |
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.
2022->2023
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
fa8275a
to
ff193bd
Compare
ff193bd
to
4a3d5d7
Compare
PR types
New features
PR changes
Others
Describe