GoogLeNet returns a named tuple and thus behave differently than VGG. See source 3
GoogLeNetOutputs = namedtuple('GoogLeNetOutputs', ['logits', 'aux_logits2', 'aux_logits1'])
Try
output = net(x)
output_logits = output.logits
print(output_logits.shape)