the  neural network is defined as
class networka(nn.Module):
def init(self):
super(networka,self).init()
self.network=nn.Sequential(
nn.Linear(19,11),
nn.ReLU(True),
nn.Linear(11,3),
nn.Softmax()
)
def forward(self, x):
x=self.network(x)
return x
A=networka()
This code works
z = Variable(torch.randn(19,19))
A(z)
But this doesn’t
X_data=(np.random.rand(19,19))
X=Variable(torch.from_numpy(X_data))
A(X)
Could anyone tell me why?