Skip to content

Commit

Permalink
Update library_test.py
Browse files Browse the repository at this point in the history
  • Loading branch information
astonzhang authored Jan 18, 2021
1 parent ebde9e6 commit e138da6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion d2lbook/library_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def test_replace_alias(self):
('# comments\nX = d2l.reshape(a)', '# comments\nX = a.reshape()'),
('X = d2l.reshape(a) # comments', 'X = a.reshape() # comments'),
('Y[i, j] = d2l.reduce_sum((X[i: i + h, j: j + w] * K))',
'Y[i, j] = (X[i: i + h, j: j + w] * K).sum()'),
'Y[i, j] = (X[i:i + h, j:j + w] * K).sum()'),
]
for a, b in pairs:
self.nb.cells[0].source = a
Expand Down

0 comments on commit e138da6

Please sign in to comment.