(self, conv, rank, world_size, shard_by_oc)
| 1889 | class TensorParallelConv2d(nn.Module): |
| 1890 | |
| 1891 | def __init__(self, conv, rank, world_size, shard_by_oc): |
| 1892 | super().__init__() |
| 1893 | self.rank = rank |
| 1894 | self.world_size = world_size |
| 1895 | self.shard_by_oc = shard_by_oc |
| 1896 | self.shard_weights(conv) |
| 1897 | |
| 1898 | # Split along the input/output channel depending on whether it is the last conv layer. |
| 1899 | def shard_weights(self, conv): |
nothing calls this directly
no test coverage detected