import torch
import torch.nn as nn

x = torch.tensor([2.0])

class Linear_Model(nn.Module):
    def __init__(self):
        super().__init__()
        self.lm1 = nn.Linear(1,1,bias=False)
        self.lm2 = nn.Linear(1,1,bias=True)
    def forward(self, X):
        out = self.lm1(X) + self.lm2(X)
        
        return out

mdl = Linear_Model()

print(mdl(x))