Paddle icon indicating copy to clipboard operation
Paddle copied to clipboard

switch op性能问题

Open LihangLiu opened this issue 7 years ago • 3 comments

在使用switch op的过程中,发现耗时很久,利用profiler工具查看了下具体的耗时,如下图: image

ps:

  1. 模型是常规的dynamic_rnn模型。
  2. 加入switch op是为了将rnn的init和单步infer拆成两个子网络来跑inference,但是发现加入switch op后耗时增加很多。
  3. 版本相关:centos, fluid1.3, cuda9 cudnn7

LihangLiu avatar Jun 20 '19 05:06 LihangLiu

定义两个program 可行吗

phlrain avatar Jun 20 '19 08:06 phlrain

请问楼主,如何使用switch实现根据不同条件,tensor流入不同网络的,并优化的呢。

irukawang avatar Jul 02 '19 07:07 irukawang

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。 若问题未解决或有后续问题,请随时重新打开,我们会继续跟进。

paddle-bot-old avatar Jul 06 '20 09:07 paddle-bot-old