You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2019/10/10 21:18:23 UTC

[GitHub] [incubator-mxnet] DickJC123 commented on issue #15657: Eliminate common expressions

DickJC123 commented on issue #15657: Eliminate common expressions
URL: https://github.com/apache/incubator-mxnet/pull/15657#issuecomment-540802351
 
 
   I believe the case of having one output driving multiple symbol outputs is handled strangely, not that this is an important use case.  The issue occurs with an operator driving 3 or more symbol outputs.  Here's the progression of model compute graphs:
   ```
   foo ----+----> out0
           |
           +----> out1
           |
           +----> out2
   ```
   copy operators inserted:
   ```
   foo ----+----> out0
           |
           +-- copy --> out1
           |
           +-- copy --> out2
   ```
   More CSE applied:
   ```
   foo ----+----> out0
           |
           +-- copy --+----> out1
                      |
                      +----> out2
   ```
   copy operators inserted:
   ```
   foo ----+----> out0
           |
           +-- copy --+----> out1
                      |
                      +-- copy --> out2
   ```
   So N outputs driven by the same node end up being driven by N - 1 serialized copies, not N-1 parallel copies.
   
   What is the use-case that requires these copies to be inserted?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services