From 38f4a865696d1a744a041ce478130bb7ec1df7a6 Mon Sep 17 00:00:00 2001 From: Rohit Kumar Srivastava Date: Mon, 12 Aug 2019 23:33:54 +0000 Subject: [PATCH] fixing problem with existing Singleton Caching --- python/mxnet/runtime.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/python/mxnet/runtime.py b/python/mxnet/runtime.py index edfa24525ab9..0f7de76937c0 100644 --- a/python/mxnet/runtime.py +++ b/python/mxnet/runtime.py @@ -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()))