def constant(self, value,
               type_name):
    """An NQL encoding of an appropriate Tensorflow constant.

    The constant should be a Tensorflow expression corresponding to a minibatch
    of weighted sets of this type.

    Args:
      value: a Tensorflow expression
      type_name: a string naming a type

    Returns:
      A NeuralQueryExpression.
    """
    provenance = NQExprProvenance(operation='constant', args=(type_name, value))
    return self.as_nql(value, type_name, provenance)
An NQL encoding of an appropriate Tensorflow constant.

    The constant should be a Tensorflow expression corresponding to a minibatch
    of weighted sets of this type.

    Args:
      value: a Tensorflow expression
      type_name: a string naming a type

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