(self, x)
return torch.sum(self.fc(x), dim=1) + self.bias
:param x: Long tensor of size ``(batch_size, num_fields)``
:param x: Long tensor of size ``(batch_size, num_fields)``
: param x : Long tensor of size ( batch_size num_fields )
def forward(self, x):
        """
        :param x: Long tensor of size ``(batch_size, num_fields)``
        """
        x = x + x.new_tensor(self.offsets).unsqueeze(0)
        return torch.sum(self.fc(x), dim=1) + self.bias
def forward ( self , x ) : x = x + x . new_tensor ( self . offsets ) . unsqueeze ( 0 ) return torch . sum ( self . fc ( x ) , dim = 1 ) + self . bias