sigmoid has no learnable parameters. softmax non plus. Assuming your x has requires_grad set to False, which is the default, if you didnt set it to True, then there are no learnable parameters in your network.
You probably want some nn.Linear or similar in your network.
by the way, calling .data strips the gradients from a variable. I doubt you want to do that