(self, conv, rank, world_size, shard_by_oc)
| 1794 | class TensorParallelConv2d(nn.Module): |
| 1795 | |
| 1796 | def __init__(self, conv, rank, world_size, shard_by_oc): |
| 1797 | super().__init__() |
| 1798 | self.rank = rank |
| 1799 | self.world_size = world_size |
| 1800 | self.shard_by_oc = shard_by_oc |
| 1801 | self.shard_weights(conv) |
| 1802 | |
| 1803 | # Split along the input/output channel depending on whether it is the last conv layer. |
| 1804 | def shard_weights(self, conv): |
nothing calls this directly
no test coverage detected