Objectorientedprogramming in pytorch

could you please answer this question