Closed rcshubhadeep closed 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
asscalar
x.norm().numpy().item()
Check out this pull request on
Review Jupyter notebook visual diffs & provide feedback on notebooks.
Powered by ReviewNB
Thanks for the update! :)
From onward numpy v1.16 the
asscalar
function is deprecated. We need to usex.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