Skip to content

Commit

Permalink
fixing problem with existing Singleton Caching (apache#15868)
Browse files Browse the repository at this point in the history
  • Loading branch information
access2rohit authored and Rohit Kumar Srivastava committed Sep 25, 2019
1 parent 4d000c2 commit 2a2a9d7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions python/mxnet/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,9 @@ class Features(collections.OrderedDict):
def __new__(cls):
if cls.instance is None:
cls.instance = super(Features, cls).__new__(cls)
super(Features, cls.instance).__init__([(f.name, f) for f in feature_list()])
return cls.instance

def __init__(self):
super(Features, self).__init__([(f.name, f) for f in feature_list()])

def __repr__(self):
return str(list(self.values()))

Expand Down

0 comments on commit 2a2a9d7

Please sign in to comment.