arthurdouillard / incremental_learning.pytorch

A collection of incremental learning paper implementations including PODNet (ECCV20) and Ghost (CVPR-W21).
MIT License
383 stars 60 forks source link

Changed view() -> reshape() in metrics.py #34

Closed billpsomas closed 3 years ago

billpsomas commented 3 years ago

There was a RuntimeError.

arthurdouillard commented 3 years ago

Hum that's weird. Reshape should be used over view when tensor is not contiguous in memory when doing some fancy indexing or step based indexing. Which doesn't seem to be there, that's why I didn't have the problem.

But I guess both have equivalent behavior.

Thanks Bill!