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

Commit

Permalink
Python2 doesn't scope list comprehensions
Browse files Browse the repository at this point in the history
  • Loading branch information
larroy committed Apr 26, 2019
1 parent afa41c7 commit 25fda1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/python/unittest/test_gluon.py
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,7 @@ def test_dense_backward():
with net.name_scope():
net.add(gluon.nn.Dense(1, in_units=x.shape[1]))
net.initialize(mx.initializer.Constant(.5))
params = [x.data() for x in net.collect_params().values()]
params = [p.data() for p in net.collect_params().values()]
x.attach_grad()
with ag.record():
y = net.forward(x)
Expand Down

0 comments on commit 25fda1d

Please sign in to comment.