Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fixing problem with existing Singleton Caching (#15868)
Browse files Browse the repository at this point in the history
  • Loading branch information
access2rohit authored and apeforest committed Aug 13, 2019
1 parent c3f5eea commit bd32de4
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 bd32de4

Please sign in to comment.