Skip to content

Commit

Permalink
[BugFix] Fix Ray collector on Python > 3.8 (pytorch#2015)
Browse files Browse the repository at this point in the history
  • Loading branch information
albertbou92 authored Mar 18, 2024
1 parent 77d2fc9 commit 87f3437
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions torchrl/collectors/collectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,9 @@ def __repr__(self) -> str:
string = f"{self.__class__.__name__}()"
return string

def __class_getitem__(self, index):
raise NotImplementedError


@accept_remote_rref_udf_invocation
class SyncDataCollector(DataCollectorBase):
Expand Down

0 comments on commit 87f3437

Please sign in to comment.