formath commented on issue #7233: assert size eq between shared_module.execs 
and context
URL: https://github.com/apache/incubator-mxnet/pull/7233#issuecomment-335064207
 
 
   @sxjscience assert len(shared_group.execs) >= len(self._context) is ok. But 
some other things must be known by user.
   If the the batch size is `N` and devices are '0,1,2,3' for the 
`shared_group`, the batch size for each `exec` is `N/4`. So the batch size for 
the new `exec` to be created using existing shared one should also be `N/4` for 
shape consistent of shared arguments. Thus, the batch size for the new 
`exec_group` should be `N/4 * 2` if devices are `0,1` or any others containing 
two. This may be a burden for users who are not familiar with mxnet low level 
code. Otherwise, I saw the `shared_group` is just used by bucketing in which 
devices will not changed. Right? If I'm wrong, I will fix it. Thanks.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to