[issue42530] Pickle Serialization Mangles NllLossBackward Objects in Tensor Objects

2020-12-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Torch is not the part of the standard Python library. Please file the report on the Torch bug tracker. -- nosy: +serhiy.storchaka resolution: -> third party stage: -> resolved status: open -> closed ___ Python

[issue42530] Pickle Serialization Mangles NllLossBackward Objects in Tensor Objects

2020-12-01 Thread Daniel Kostecki
New submission from Daniel Kostecki : torch.nn.functional.nll_loss returns Tensor objects which contain a loss value as well as a grad_fn object. Pickle does not throw an exception when serializing (dumps) the Tensor object. When loading (loads) the serialized data, the grad_fn object is