(self, x, values)
return values * self.embedding(x)
: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, values):
        """
        :param x: Long tensor of size ``(batch_size, num_fields)``
        """
        x = x + x.new_tensor(self.offsets).unsqueeze(0)
        values = values.unsqueeze(3)
        return values * self.embedding(x)
def forward ( self , x , values ) : x = x + x . new_tensor ( self . offsets ) . unsqueeze ( 0 ) values = values . unsqueeze ( 3 ) return values * self . embedding ( x )