()
| 268 | |
| 269 | # should not be blocked |
| 270 | def replace_call(): |
| 271 | asyncio.run( |
| 272 | writer.write( |
| 273 | [ |
| 274 | Experience( |
| 275 | tokens=torch.tensor([1, 2, 3]), |
| 276 | prompt_length=2, |
| 277 | info={"model_version": 4, "use_count": 0}, |
| 278 | ), |
| 279 | Experience( |
| 280 | tokens=torch.tensor([1, 2, 3]), |
| 281 | prompt_length=2, |
| 282 | info={"model_version": 4, "use_count": 0}, |
| 283 | ), |
| 284 | ] |
| 285 | ) |
| 286 | ) |
| 287 | |
| 288 | thread = threading.Thread(target=replace_call) |
| 289 | thread.start() |
nothing calls this directly
no test coverage detected