3. Given this PyTorch code snippet for distributed training, what will be the output shape of the model's output tensor if the input batch size is 32?
import torch
import torch.nn as nn
import torch.distributed as dist
class SimpleModel(nn.Module):
def __init__(self):
super().__init__()
self.linear = nn.Linear(10, 5)
def forward(self, x):
return self.linear(x)
model = SimpleModel()
dist.init_process_group(backend='gloo', world_size=1, rank=0)
model = nn.parallel.DistributedDataParallel(model)
input_tensor = torch.randn(32, 10)
output = model(input_tensor)
print(output.shape)