File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -105,11 +105,11 @@ def _policy_is_tensordict_compatible(policy: nn.Module):
105
105
# that will have undetermined behaviour, we raise an error
106
106
raise TypeError (
107
107
"Received a policy that defines in_keys or out_keys and also expects multiple "
108
- "arguments to self .forward. If the policy is compatible with TensorDict, it "
109
- "should take a single argument of type TensorDict to self .forward and define "
110
- "both in_keys and out_keys. Alternatively, self .forward can accept arbitrarily "
111
- "many tensor inputs and leave in_keys and out_keys undefined and TorchRL will "
112
- "attempt to automatically wrap the policy with a TensorDictModule."
108
+ "arguments to policy .forward. If the policy is compatible with TensorDict, it "
109
+ "should take a single argument of type TensorDict to policy .forward and define "
110
+ "both in_keys and out_keys. Alternatively, policy .forward can accept "
111
+ "arbitrarily many tensor inputs and leave in_keys and out_keys undefined and "
112
+ "TorchRL will attempt to automatically wrap the policy with a TensorDictModule."
113
113
)
114
114
115
115
You can’t perform that action at this time.
0 commit comments