Torch Adapter¶
torch.hpp turns a torch tensor into a CaliperTensor, refuses a tensor it cannot share rather than copying it, and applies the rules of MPS and CUDA.
| Field | Value |
|---|---|
| ID | REN-66 |
| Status | Shipped |
| Scope | Core |
| Pillar | Rendering and 3-D |
| Sprint | None |
| Depends On | CaliperTensor (COR-49)Zero-Copy from Torch ( REN-08) |
| Unblocks | None |
| Docs | Adapters, torch.hpp |
| Branches | None |
| Design | None |
Coverage Ledger¶
- Adapters, torch.hpp. torch.hpp turns a torch tensor into a CaliperTensor, rejects rather than copies, and applies the MPS and CUDA rules.
- Adapters, torch.hpp Source. The full source of torch.hpp.