(self, conv, rank, world_size, shard_by_oc)
| 1876 | class TensorParallelConv2d(nn.Module): |
| 1877 | |
| 1878 | def __init__(self, conv, rank, world_size, shard_by_oc): |
| 1879 | super().__init__() |
| 1880 | self.rank = rank |
| 1881 | self.world_size = world_size |
| 1882 | self.shard_by_oc = shard_by_oc |
| 1883 | self.shard_weights(conv) |
| 1884 | |
| 1885 | # Split along the input/output channel depending on whether it is the last conv layer. |
| 1886 | def shard_weights(self, conv): |
nothing calls this directly
no test coverage detected