Pytorch equivalent is
torch.nn.Sequential(
torch.nn.Linear(64, 512),
torch.nn.ReLU(),
torch.nn.Dropout(0.10),
torch.nn.Linear(512, 4)
)

Please actively search for pytorch documents, you should have done it by yourself.