Hi everyone as the title says, I’m wondering if get_parameter is no more supported for ScriptModules.
Here a trivial example:
import torch
class InputContainer(torch.nn.Module):
def __init__(self, obj):
super().__init__()
for key, value in obj.items():
setattr(self, key, value)
inputs = {
"audio" : torch.rand((553172,))
}
inputs_model = InputContainer(inputs)
inputs_script = torch.jit.script(inputs_model)
inputs_script.save("rmvpe_inputs.pt")
inputs_script.get_parameter("audio")
File "c:\Users\simos\miniconda3\envs\rcv\lib\site-packages\torch\jit\_script.py", line 981, in fail
raise RuntimeError(name + " is not supported on ScriptModules")
RuntimeError: get_parameter is not supported on ScriptModules
what does it mean? are not docs up to date?
PyTorch version: 2.2.2+cpu
Python version: 3.10.14