Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pt: make get_data non-blocking (#3422)
`to(DEVICE)` is cpu-blocking but `to(DEVICE, non-blocking=True)` is not blocking. This improves performance by at least 0.1s/100 steps. Before, `get_data` is blocking:   After, `get_data` is not blocking:   The subsequent blocking is `phys2inter` (via `torch.linalg.inv`). Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
- Loading branch information