Skip to content

Conversation

@yghstill
Copy link
Contributor

@yghstill yghstill commented Dec 9, 2021

PR types

Bug fixes

PR changes

APIs

Describe

If next_op is fetch and out_var_name in fetch_targets, fetch_targets must update, so fix fetch op rename_input bug in QAT export model.

@paddle-bot-old
Copy link

paddle-bot-old bot commented Dec 9, 2021

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

@wanghaoshuang
Copy link
Contributor

wanghaoshuang commented Dec 10, 2021

conv2d_1-->tensor_A-->moving_average_abs_max_scale-->tensor_B-->conv2d_2 | --->fetch 

To remove unused moving_average_abs_max_scale from quantization graph, the input of conv2d_2 will be renamed to tensor_A. And hence tensor_B will be pruned with moving_average_abs_max_scale when saving inference model.
So we should replace tensor_B with tensor_A in fetched list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants