parameters: (prefer_float32=False)
docstring: Enable NumPy behavior on Tensors.
  
    Enabling NumPy behavior has three effects:
    * It adds to `tf.Tensor` some common NumPy methods such as `T`,
      `reshape` and `ravel`.
    * It changes dtype promotion in `tf.Tensor` operators to be
      compatible with NumPy. For example,
      `tf.ones([], tf.int32) + tf.ones([], tf.float32)` used to throw a
      "dtype incompatible" error, but after this it will return a
      float64 tensor (obeying NumPy's promotion rules).
    * It enhances `tf.Tensor`'s indexing capability to be on par with
      [NumPy's](https://numpy.org/doc/stable/reference/arrays.indexing.html).
  
    Args:
      prefer_float32: Controls whether dtype inference will use float32
      for Python floats, or float64 (the default and the
      NumPy-compatible behavior).
docstring_summary: Enable NumPy behavior on Tensors.
docstring_tokens: Enable NumPy behavior on Tensors .
function: def enable_numpy_behavior(prefer_float32=False):
    """Enable NumPy behavior on Tensors.
  
    Enabling NumPy behavior has three effects:
    * It adds to `tf.Tensor` some common NumPy methods such as `T`,
      `reshape` and `ravel`.
    * It changes dtype promotion in `tf.Tensor` operators to be
      compatible with NumPy. For example,
      `tf.ones([], tf.int32) + tf.ones([], tf.float32)` used to throw a
      "dtype incompatible" error, but after this it will return a
      float64 tensor (obeying NumPy's promotion rules).
    * It enhances `tf.Tensor`'s indexing capability to be on par with
      [NumPy's](https://numpy.org/doc/stable/reference/arrays.indexing.html).
  
    Args:
      prefer_float32: Controls whether dtype inference will use float32
      for Python floats, or float64 (the default and the
      NumPy-compatible behavior).
    """
    ops.enable_numpy_style_type_promotion()
    ops.enable_numpy_style_slicing()
    np_math_ops.enable_numpy_methods_on_tensor()
    np_dtypes.set_prefer_float32(prefer_float32)
function_tokens: def enable_numpy_behavior ( prefer_float32 = False ) : ops . enable_numpy_style_type_promotion ( ) ops . enable_numpy_style_slicing ( ) np_math_ops . enable_numpy_methods_on_tensor ( ) np_dtypes . set_prefer_float32 ( prefer_float32 )