Interactive deep learning book with multi-framework code, math, and discussions. Adopted at 500 universities from 70 countries including Stanford, MIT, Harvard, and Cambridge.
Update uses of deprecated torch.norm to torch.linalg.vector_norm if the ndim of the value passed is 1 or torch.linalg.matrix_norm if the ndim of the value passed is >= 2 in:
Description of changes:
Update uses of deprecated
torch.norm
totorch.linalg.vector_norm
if thendim
of the value passed is 1 ortorch.linalg.matrix_norm
if thendim
of the value passed is >= 2 in:By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.