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 2021/02/01 21:01:38 UTC

[GitHub] [incubator-mxnet] szha commented on a change in pull request #19812: [2.0.alpha] fixed backend_opts to be empty dictionary instead of None

szha commented on a change in pull request #19812:
URL: https://github.com/apache/incubator-mxnet/pull/19812#discussion_r568136470



##########
File path: python/mxnet/gluon/block.py
##########
@@ -1052,7 +1052,7 @@ def __init__(self):
         self._callback = None
         self._monitor_all = False
         self._backend = None
-        self._backend_opts = {}
+        self._backend_opts = dict()

Review comment:
       I always had the impression that initialization with literal empty dict is preferred.




----------------------------------------------------------------
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