If you want to add dropout / and make other changes, then copy this file: https://github.com/pytorch/vision/blob/master/torchvision/models/inception.py#L119 318 and change the python code of forward to insert dropout.
PyTorch models are Python programs. Keras models are graph data structures. That’s why you have a forward in pytorch.