Closed mrcslws closed 1 year ago
@saitcakmak this seems to be due to the __getattr__
passthrough. Not sure how this interacts with pickle but apparently not well. Could you take a look please?
Fix and explanation of what was going on is in https://github.com/pytorch/botorch/pull/1644.
🐛 Bug
botorch.posteriors.TorchPosterior
doesn't supporttorch.load
. Loading it throws an error.Use case: Previously (a few months ago), during cross validation it was possible to
torch.save
the results and analyze them later. Now an error occurs when you try totorch.load
a saved result.To reproduce
System information
Please complete the following information: botorch: 0.7.3.dev22+g208470e7.d20221102 gpytorch: 1.9.1.dev32+g23b068b5 torch: 1.13.1 Mac OS 13.1 M1