Answer the question
In order to leave comments, you need to log in
How to use a neural network in an application?
Using the guides, I got a neural network in PyTorch that suits me.
Question
how to use it?:
class Net(nn.Module):
def __init__(self):
super(Net, self).__init__()
self.fc1 = nn.Linear(276, 276)
self.fc2 = nn.Linear(276, 276)
self.fc3 = nn.Linear(276, 109)
def forward(self, x):
x = F.relu(self.fc1(x))
x = F.relu(self.fc2(x))
x = self.fc3(x)
return F.log_softmax(x)
Answer the question
In order to leave comments, you need to log in
There are several approaches:
I won’t say about pytorch, I didn’t use it, but in other frameworks you can save the trained model, I’m sure that it’s also possible in pytorch.
That is, you first need to train your network, save it, then simply load this model in your application and make a prediction on the necessary data, give the result somewhere further into the application.
upd googled it
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question