You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to load saved checkpoint and for the predictions on test dataset but i'm having issue.It would be great if someone help me fix this issue and how can we yaml parameter filr inoredr to load file.
model = TransformerEstimator(
freq=freq,
prediction_length=prediction_length,
context_length=prediction_length*2,
num_feat_static_cat=0,
cardinality=[1],
embedding_dimension=[3],
I'm trying to load saved checkpoint and for the predictions on test dataset but i'm having issue.It would be great if someone help me fix this issue and how can we yaml parameter filr inoredr to load file.
model = TransformerEstimator(
freq=freq,
prediction_length=prediction_length,
context_length=prediction_length*2,
num_feat_static_cat=0,
cardinality=[1],
embedding_dimension=[3],
checkpoint = torch.load('/Workspace/Repo/pytorch-transformer-ts/transformer/lightning_logs/version_4/checkpoints/epoch=7-step=160.ckpt')
model.load_state_dict(checkpoint['state_dict'])
AttributeError: 'TransformerEstimator' object has no attribute 'load_state_dict'
The text was updated successfully, but these errors were encountered: