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 [email protected]
