Skip to content

Conversation

zyfncg
Copy link
Contributor

@zyfncg zyfncg commented Apr 9, 2022

PR types

New features

PR changes

APIs

Describe

Yaml配置支持vector返回类型的size设置。vector返回类型同时支持原先invoke的实现方式。

配置规则以meshgrid为例,对于vector类型输出的size在原返回值配置项中使用 {size计算表达式}进行配置。

- api : meshgrid
  args : (Tensor[] inputs)
  output : Tensor[](out) {inputs.size()}
  ...

@paddle-bot-old
Copy link

paddle-bot-old bot commented Apr 9, 2022

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See [Paddle CI Manual(https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/dev_guides/git_guides/paddle_ci_manual_cn.html) for details.

chenwhql
chenwhql previously approved these changes Apr 11, 2022
Copy link
Contributor

@chenwhql chenwhql left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

YuanRisheng
YuanRisheng previously approved these changes Apr 11, 2022
@zyfncg zyfncg dismissed stale reviews from MingMingShangTian, YuanRisheng, and chenwhql via 54cbdc1 April 11, 2022 04:07
jim19930609
jim19930609 previously approved these changes Apr 11, 2022
@zyfncg zyfncg merged commit dead24d into PaddlePaddle:develop Apr 12, 2022
@zyfncg zyfncg deleted the out_size_yaml branch April 12, 2022 02:03
zyfncg added a commit to zyfncg/Paddle that referenced this pull request Apr 18, 2022
…addle#41576)

* support setting vector out size in yaml

* support setting size of vector<tensor> for out in yaml
chenwhql pushed a commit to chenwhql/Paddle that referenced this pull request Apr 20, 2022
…addle#41576)

* support setting vector out size in yaml

* support setting size of vector<tensor> for out in yaml
phlrain pushed a commit that referenced this pull request Apr 21, 2022
* [Phi] Support setting size of vector<Tensor> for out in yaml (#41576)

* support setting vector out size in yaml

* support setting size of vector<tensor> for out in yaml

* resolve conflict

Co-authored-by: zyfncg <zhangyunfei07@baidu.com>
phlrain pushed a commit that referenced this pull request Apr 21, 2022
#41928)

* [PHI] Support some c++ api in paddle namespace (#41778)

* support some c++ api in paddle namespace

* change c++ api namespace in custom op

* [Phi] Support setting size of vector<Tensor> for out in yaml (#41576)

* support setting vector out size in yaml

* support setting size of vector<tensor> for out in yaml

* add data transform config for shape and size (#41909)

* fix api_gen bug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants