<filename>python/sdk/test/pytorch-model/iris.py
import torch.nn as nn
import torch.nn.functional as F

class IrisModel(nn.Module):
    # define nn
    def __init__(self):
        super(IrisModel, self).__init__()
        self.fc1 = nn.Linear(4, 100)
        self.fc2 = nn.Linear(100, 100)
        self.fc3 = nn.Linear(100, 3)
        self.softmax = nn.Softmax(dim=1)

    def forward(self, X):
        X = F.relu(self.fc1(X))
        X = self.fc2(X)
        X = self.fc3(X)
        X = self.softmax(X)

        return X
<filename>python/sdk/test/pytorch-model/iris.py
import torch.nn as nn
import torch.nn.functional as F

class IrisModel(nn.Module):
    # define nn
    def __init__(self):
        super(IrisModel, self).__init__()
        self.fc1 = nn.Linear(4, 100)
        self.fc2 = nn.Linear(100, 100)
        self.fc3 = nn.Linear(100, 3)
        self.softmax = nn.Softmax(dim=1)

    def forward(self, X):
        X = F.relu(self.fc1(X))
        X = self.fc2(X)
        X = self.fc3(X)
        X = self.softmax(X)

        return X
# define nn