code: def forward(self, net: torch.Tensor) -> torch.Tensor:
      if len(net.shape) > 2:
          net = net.contiguous().view(len(net), -1)
      return self.net(net)
  
file_path: carefree-learn/cflearn/models/ml/linear.py
imports: import torch
  from typing import Dict
  from typing import Optional
  from .base import MLModel
  from ...schema import MLEncoderSettings
  from ...schema import MLGlobalEncoderSettings
label_desc: Use image node_id 2 for calling the Linear obj's underlying member method code with example usage: obj.forward(net) and returns: self