ycycse commented on issue #13745:
URL: https://github.com/apache/iotdb/issues/13745#issuecomment-2503398654
这个报错是模型保存方式不对,可以参考下面的保存方式
```python
sample_input = (
_pack_input_dict(
torch.randn(1, model_config[OptionsKey.INPUT_LENGTH.name()],
model_config[OptionsKey.INPUT_VARS.name()])
)
)
torch.jit.save(torch.jit.trace(model, sample_input),
model_file_path,
_extra_files={'model_config':
json.dumps(model_config)})
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]