Creating NN with pytorch and assign weights and biases manually

x = torch.tensor([[5.]]) should work.