Skip to content

Commit bb937ce

Browse files
author
Vincent Moens
committed
Update
[ghstack-poisoned]
1 parent 11722a3 commit bb937ce

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tensordict/base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11352,6 +11352,8 @@ def _validate_key(self, key: NestedKey) -> NestedKey:
1135211352

1135311353
@property
1135411354
def _validate_value(self):
11355+
if is_compiling():
11356+
return self._validate_value_generic
1135511357
try:
1135611358
return self._validate_value_cached
1135711359
except AttributeError:

0 commit comments

Comments
 (0)