RuntimeError: get_parameter is not supported on ScriptModules

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?

docs ref:
https://pytorch.org/docs/stable/generated/torch.jit.ScriptModule.html#torch.jit.ScriptModule.get_parameter

PyTorch version: 2.2.2+cpu
Python version: 3.10.14

TorchScript is deprecated in favor of torch.compile, so you should consider switching to the latter approach for your workloads.
With that being said, directly accessing the attribute via inputs_script.audio seems to work.