DeepNAPSI / DummyModel.py
Folle, Lukas
Added first working version of application, NAPSI is dummy.
14e27af
raw
history blame
249 Bytes
import torch
import torch.nn
class DummyModel(torch.nn.Module):
def __init__(self):
super().__init__()
def forward(self, x):
return torch.softmax(torch.rand(5), 0)
def __call__(self, x):
return self.forward(x)