You are viewing a plain text version of this content. The canonical link for it is here.
Posted to devnull@infra.apache.org by "anirudh2290 (GitHub)" <gi...@apache.org> on 2018/08/21 18:32:20 UTC
[GitHub] [incubator-mxnet] anirudh2290 commented on pull request
#12157: Subgraph API for integrating accelerators with MXNet
With \_\_REGISTER_OR_GET\_\_ also register will happen only once. To explain an use case where register wont work: lets say I create a custom subgraph property and call MXNET_REGISTER_SUBGRAPH_PROPERTY from inside the namespace. Now i include this custom subgraph property header file in multiple source files. If they are part of different translation units \_\_REGISTER\_\_ called multiple times and fails since the static variable scope is limited to the a single translation unit.
[ Full content available at: https://github.com/apache/incubator-mxnet/pull/12157 ]
This message was relayed via gitbox.apache.org for devnull@infra.apache.org