Skip to content

add affine_channel convert test#35496

Merged
jiweibo merged 3 commits into
PaddlePaddle:developfrom
JZZ-NOTE:add_affine_channel_test
Sep 14, 2021
Merged

add affine_channel convert test#35496
jiweibo merged 3 commits into
PaddlePaddle:developfrom
JZZ-NOTE:add_affine_channel_test

Conversation

@JZZ-NOTE

@JZZ-NOTE JZZ-NOTE commented Sep 6, 2021

Copy link
Copy Markdown
Contributor

PR types

Others

PR changes

OPs

Describe

  1. 添加 affine_channel 算子的 convert 单测
  2. convert不支持 2维 输入,暂时在 op_teller 中规避

@paddle-bot-old

paddle-bot-old Bot commented Sep 6, 2021

Copy link
Copy Markdown

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

yield self.create_inference_config(), generate_trt_nodes_num(attrs,
True), 1e-5
self.trt_param.precision = paddle_infer.PrecisionType.Half
yield self.create_inference_config(), generate_trt_nodes_num(attrs,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

FP16精度设置过低,可以实际跑下看看,因为有随机数种子,输入应该是确定的。
如果绝对值比较大,可以使用相对误差

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

已改为 1e-5;
Done

@jiweibo jiweibo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@jiweibo jiweibo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@jiweibo jiweibo merged commit eb810c1 into PaddlePaddle:develop Sep 14, 2021
AnnaTrainingG pushed a commit to AnnaTrainingG/Paddle that referenced this pull request Sep 29, 2021
* add affine_channel test

* modify affine_channel convert test

Co-authored-by: xiaoxiaohehe001 <hiteezsf@163.com>
@JZZ-NOTE JZZ-NOTE deleted the add_affine_channel_test branch March 17, 2022 09:27
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.

4 participants