mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/54251
Pull Request resolved: https://github.com/pytorch/tensorpipe/pull/324
In order to merge the channel hierarchies, we need a generic `Buffer` type, that can wrap either a `CpuBuffer` or a `CudaBuffer`.
The constraints are that, since this type is used by the channels, it cannot explicitly refer to `CudaBuffer`. We propose here a type-erasure based solution, with small-buffer optimization to avoid heap-allocating the wrapped concrete buffer.
This is a new version of D27001339 (
|
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| e2e_test_base.cpp | ||
| e2e_test_base.h | ||
| test_e2e_process_group.cpp | ||
| test_e2e_tensorpipe.cpp | ||
| test_tensorpipe_serialization.cpp | ||
| test_wire_serialization.cpp | ||