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

fixing problem with existing Singleton Caching #15868

Merged
merged 1 commit into from
Aug 13, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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):
access2rohit marked this conversation as resolved.
Show resolved Hide resolved
super(Features, self).__init__([(f.name, f) for f in feature_list()])

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

Expand Down