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

Commit ac500fc

Browse files
committed
Fix Python 2
1 parent 57e92d2 commit ac500fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/python/unittest/test_gluon.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1515,14 +1515,14 @@ def forward(self, x):
15151515
def test_save_load_deduplicate_with_shared_params():
15161516
class B(mx.gluon.Block):
15171517
def __init__(self, params=None):
1518-
super().__init__(params=params)
1518+
super(self, B).__init__(params=params)
15191519

15201520
with self.name_scope():
15211521
self.weight = self.params.get('weight', shape=(10, 10))
15221522

15231523
class C(mx.gluon.Block):
15241524
def __init__(self, b1, b2):
1525-
super().__init__()
1525+
super(self, C).__init__()
15261526
self.b1 = b1
15271527
self.b2 = b2
15281528

0 commit comments

Comments
 (0)