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
运行会导致ValueError: object array method not producing an array;
SageFormer-main/exp/exp_long_term_forecasting.py 函数75行total_loss = np.average(total_loss)应该加一行,改为
scalar_losses = [loss.item() if isinstance(loss, torch.Tensor) else loss for loss in total_loss]
total_loss = np.average(scalar_losses),能成功运行
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
运行会导致ValueError: object array method not producing an array;
SageFormer-main/exp/exp_long_term_forecasting.py 函数75行total_loss = np.average(total_loss)应该加一行,改为
scalar_losses = [loss.item() if isinstance(loss, torch.Tensor) else loss for loss in total_loss]
total_loss = np.average(scalar_losses),能成功运行
Beta Was this translation helpful? Give feedback.
All reactions