(self, data)
| 42 | |
| 43 | @register(dispatch_mode=Dispatch.DP_COMPUTE, blocking=False) |
| 44 | def do_nothing(self, data): |
| 45 | for key in data.batch.keys(): |
| 46 | data.batch[key] += 1 |
| 47 | if tensordict.__version__ >= '0.5.0': |
| 48 | data.batch = data.batch.consolidate() |
| 49 | return data |
| 50 | |
| 51 | |
| 52 | def test_data_transfer(): |
no outgoing calls
no test coverage detected