Skip to content

Commit c0d48f0

Browse files
access2rohitRohit Kumar Srivastava
authored andcommitted
fixing problem with existing Singleton Caching (apache#15868)
1 parent 94ad8eb commit c0d48f0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

python/mxnet/runtime.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,9 @@ class Features(collections.OrderedDict):
7777
def __new__(cls):
7878
if cls.instance is None:
7979
cls.instance = super(Features, cls).__new__(cls)
80+
super(Features, cls.instance).__init__([(f.name, f) for f in feature_list()])
8081
return cls.instance
8182

82-
def __init__(self):
83-
super(Features, self).__init__([(f.name, f) for f in feature_list()])
84-
8583
def __repr__(self):
8684
return str(list(self.values()))
8785

0 commit comments

Comments
 (0)