parameters: (a, b)
docstring: A version of tf.logical_and that eagerly evaluates if possible.
docstring_summary: A version of tf.logical_and that eagerly evaluates if possible.
docstring_tokens: A version of tf . logical_and that eagerly evaluates if possible .
function: def logical_and(a, b):
    """A version of tf.logical_and that eagerly evaluates if possible."""
    a_value = get_static_value(a)
    if a_value is not None:
      if np.isscalar(a_value):
        if a_value:
          return _maybe_static(b)
        else:
          return a_value
      else:
        return a_value & _maybe_static(b)
    else:
      return a & _maybe_static(b)
function_tokens: def logical_and ( a , b ) : a_value = get_static_value ( a ) if a_value is not None : if np . isscalar ( a_value ) : if a_value : return _maybe_static ( b ) else : return a_value else : return a_value & _maybe_static ( b ) else : return a & _maybe_static ( b )