dsgiitr / d2l-pytorch

This project reproduces the book Dive Into Deep Learning (https://d2l.ai/), adapting the code from MXNet into PyTorch.
Apache License 2.0
4.24k stars 1.24k forks source link

Insert text about numpy.asscalar deprecation #105

Closed rcshubhadeep closed 4 years ago

rcshubhadeep commented 4 years ago

From onward numpy v1.16 the asscalar function is deprecated. We need to use x.norm().numpy().item() instead but as Tensor.numpy() has not been introduced yet, I thought of adding a line to at least the user be aware of that

review-notebook-app[bot] commented 4 years ago

Check out this pull request on  ReviewNB

Review Jupyter notebook visual diffs & provide feedback on notebooks.


Powered by ReviewNB

AnirudhDagar commented 4 years ago

Thanks for the update! :)