Paddle
Paddle copied to clipboard
switch op性能问题
在使用switch op的过程中,发现耗时很久,利用profiler工具查看了下具体的耗时,如下图:

ps:
- 模型是常规的dynamic_rnn模型。
- 加入switch op是为了将rnn的init和单步infer拆成两个子网络来跑inference,但是发现加入switch op后耗时增加很多。
- 版本相关:centos, fluid1.3, cuda9 cudnn7
定义两个program 可行吗
请问楼主,如何使用switch实现根据不同条件,tensor流入不同网络的,并优化的呢。
Since you haven't replied for more than a year, we have closed this issue/pr. If the problem is not solved or there is a follow-up one, please reopen it at any time and we will continue to follow up. 由于您超过一年未回复,我们将关闭这个issue/pr。 若问题未解决或有后续问题,请随时重新打开,我们会继续跟进。