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

Commit

Permalink
Fix Python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
leezu committed Oct 24, 2019
1 parent 57e92d2 commit ac500fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/python/unittest/test_gluon.py
Original file line number Diff line number Diff line change
Expand Up @@ -1515,14 +1515,14 @@ def forward(self, x):
def test_save_load_deduplicate_with_shared_params():
class B(mx.gluon.Block):
def __init__(self, params=None):
super().__init__(params=params)
super(self, B).__init__(params=params)

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

class C(mx.gluon.Block):
def __init__(self, b1, b2):
super().__init__()
super(self, C).__init__()
self.b1 = b1
self.b2 = b2

Expand Down

0 comments on commit ac500fc

Please sign in to comment.