Let’s say I defined the a model class. Now I want to implement a train function inside the class for which i need to call the model. How should i do that.
Which one is the right way to do this :
def train(self,x):
out=self.call(x)
or
def train(self,x):
out=self.forward(x)