def __mul__(self, other):
    """Component-wise multiply the underlying expressions.


    Args:
      other: A NeuralQueryExpression

    Returns:
      A NeuralQueryExpression.
    """
    if isinstance(other, NeuralQueryExpression):
      self._check_type_compatibility(self.type_name, other.type_name, 'mul')
      provenance = NQExprProvenance(
          operation='add', inner=self.provenance, other=other.provenance)
      return self.context.as_nql(
          tf.multiply(self.tf, other.tf), self.type_name, provenance)
    else:
      provenance = NQExprProvenance(
          operation='mul',
          inner=self.provenance,
          other=NQExprProvenance(operation='constant', args=(None, other)))
      return self.context.as_nql(
          tf.multiply(self.tf, other), self.type_name, provenance)
Component-wise multiply the underlying expressions.


    Args:
      other: A NeuralQueryExpression

    Returns:
      A NeuralQueryExpression.
    
language/nql/nql/__init__.py