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
Hello.
For my experiments I use nvcr.io/nvidia/pytorch:24.01-py3 docker.
I have tried to run torch_gymnasium_cartpole_dqn.py example.
But when model.init_parameters(method_name="normal_", mean=0.0, std=0.1) method executes I have got the error: ValueError: Attempted to use an uninitialized parameter in <function normal_ at 0x74bc340b0700>. This error happens when you are using a `LazyModule` or explicitly manipulating `torch.nn.parameter.UninitializedParameter` objects. When using LazyModules Call `forward` with a dummy batch to initialize the parameters before calling torch functions
What skrl version are you using?
1.3.0
What ML framework/library version are you using?
PyTorch 2.2.0a0+81ea7a4
Additional system information
Python 3.10.12
The text was updated successfully, but these errors were encountered:
Thanks for reporting it, I see the issues... In the toni/space_tensor_conversion branch, I am working on generic spaces utils that will allow to initialize lazy torch models in Runner instances.
The solution will be to call the instantiated models
Description
Hello.
For my experiments I use nvcr.io/nvidia/pytorch:24.01-py3 docker.
I have tried to run torch_gymnasium_cartpole_dqn.py example.
But when
model.init_parameters(method_name="normal_", mean=0.0, std=0.1)
method executes I have got the error:ValueError: Attempted to use an uninitialized parameter in <function normal_ at 0x74bc340b0700>. This error happens when you are using a `LazyModule` or explicitly manipulating `torch.nn.parameter.UninitializedParameter` objects. When using LazyModules Call `forward` with a dummy batch to initialize the parameters before calling torch functions
What skrl version are you using?
1.3.0
What ML framework/library version are you using?
PyTorch 2.2.0a0+81ea7a4
Additional system information
Python 3.10.12
The text was updated successfully, but these errors were encountered: