# Module: tf.experimental.numpy

<br />

# tf.experimental.numpy: NumPy API on TensorFlow.

This module provides a subset of NumPy API, built on top of TensorFlow
operations. APIs are based on and have been tested with NumPy 1.16 version.

The set of supported APIs may be expanded over time. Also future releases may
change the baseline version of NumPy API being supported. A list of some
systematic differences with NumPy is listed later in the "Differences with
NumPy" section.

## Getting Started

Please also see [TensorFlow NumPy Guide](https://www.tensorflow.org/guide/tf_numpy).

In the code snippets below, we will assume that [`tf.experimental.numpy`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy) is
imported as `tnp` and NumPy is imported as `np`

    print(tnp.ones([2,1]) + np.ones([1, 2]))

## Types

The module provides an `ndarray` class which wraps an immutable [`tf.Tensor`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/Tensor).
Additional functions are provided which accept array-like objects. Here
array-like objects include `ndarrays` as defined by this module, as well as
[`tf.Tensor`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/Tensor), in addition to types accepted by NumPy.

A subset of NumPy dtypes are supported. Type promotion follows NumPy
semantics.

    print(tnp.ones([1, 2], dtype=tnp.int16) + tnp.ones([2, 1], dtype=tnp.uint8))

## Array Interface

The `ndarray` class implements the `__array__` interface. This should allow
these objects to be passed into contexts that expect a NumPy or array-like
object (e.g. matplotlib).

    np.sum(tnp.ones([1, 2]) + np.ones([2, 1]))

## TF Interoperability

The TF-NumPy API calls can be interleaved with TensorFlow calls
without incurring Tensor data copies. This is true even if the `ndarray` or
[`tf.Tensor`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/Tensor) is placed on a non-CPU device.

In general, the expected behavior should be on par with that of code involving
[`tf.Tensor`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/Tensor) and running stateless TensorFlow functions on them.

    tnp.sum(tnp.ones([1, 2]) + tf.ones([2, 1]))

Note that the `__array_priority__` is currently chosen to be lower than
[`tf.Tensor`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/Tensor). Hence the `+` operator above returns a `tf.Tensor`.

Additional examples of interoperability include:

- using `with tf.GradientTape()` scope to compute gradients through the TF-NumPy API calls.
- using `tf.distribution.Strategy` scope for distributed execution
- using [`tf.vectorized_map()`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/vectorized_map) for speeding up code using auto-vectorization

## Device Support

Given that `ndarray` and functions wrap TensorFlow constructs, the code will
have GPU and TPU support on par with TensorFlow. Device placement can be
controlled by using `with tf.device` scopes. Note that these devices could
be local or remote.

    with tf.device("GPU:0"):
      x = tnp.ones([1, 2])
    print(tf.convert_to_tensor(x).device)

## Graph and Eager Modes

Eager mode execution should typically match NumPy semantics of executing
op-by-op. However the same code can be executed in graph mode, by putting it
inside a [`tf.function`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/function). The function body can contain NumPy code, and the inputs
can be `ndarray` as well.

    @tf.function
    def f(x, y):
      return tnp.sum(x + y)

    f(tnp.ones([1, 2]), tf.ones([2, 1]))

Python control flow based on `ndarray` values will be translated by
[autograph](https://www.tensorflow.org/code/tensorflow/python/autograph/g3doc/reference/index.md)
into [`tf.cond`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/cond) and [`tf.while_loop`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/while_loop) constructs. The code can be XLA compiled
for further optimizations.

However, note that graph mode execution can change behavior of certain
operations since symbolic execution may not have information that is computed
during runtime. Some differences are:

- Shapes can be incomplete or unknown in graph mode. This means that `ndarray.shape`, `ndarray.size` and `ndarray.ndim` can return `ndarray` objects instead of returning integer (or tuple of integer) values.
- `__len__`, `__iter__` and `__index__` properties of `ndarray` may similarly not be supported in graph mode. Code using these may need to change to explicit shape operations or control flow constructs.
- Also note the [autograph limitations](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/autograph/g3doc/reference/limitations.md).

## Mutation and Variables

`ndarrays` currently wrap immutable [`tf.Tensor`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/Tensor). Hence mutation
operations like slice assigns are not supported. This may change in the future.
Note however that one can directly construct a [`tf.Variable`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/Variable) and use that with
the TF-NumPy APIs.

    tf_var = tf.Variable(2.0)
    tf_var.assign_add(tnp.square(tf_var))

## Differences with NumPy

Here is a non-exhaustive list of differences:

- Not all dtypes are currently supported. e.g. `np.float96`, `np.float128`. `np.object_`, `np.str_`, `np.recarray` types are not supported.
- `ndarray` storage is in C order only. Fortran order, views, `stride_tricks` are not supported.
- Only a subset of functions and modules are supported. This set will be expanded over time. For supported functions, some arguments or argument values may not be supported. These differences are generally provided in the function comments. Full `ufunc` support is also not provided.
- Buffer mutation is currently not supported. `ndarrays` wrap immutable tensors. This means that output buffer arguments (e.g. `out` in ufuncs) are not supported.
- NumPy C API is not supported. NumPy's Cython and Swig integration are not supported.

## Modules

[`random`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/random) module: Public API for tf.experimental.numpy.random namespace.

## Classes

[`class bool_`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/bool_): Boolean type (True or False), stored as a byte.

[`class complex128`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/complex128): Complex number type composed of two double-precision floating-point numbers, compatible with Python `complex`.

[`class complex64`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/complex64): Complex number type composed of two single-precision floating-point numbers.

[`class complex_`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/complex128): Complex number type composed of two double-precision floating-point numbers, compatible with Python `complex`.

[`class float16`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/float16): Half-precision floating-point number type.

[`class float32`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/float32): Single-precision floating-point number type, compatible with C `float`.

[`class float64`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/float64): Double-precision floating-point number type, compatible with Python `float` and C `double`.

[`class float_`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/float64): Double-precision floating-point number type, compatible with Python `float` and C `double`.

[`class iinfo`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/iinfo): iinfo(type)

[`class inexact`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/inexact): Abstract base class of all numeric scalar types with a (potentially)

[`class int16`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/int16): Signed integer type, compatible with C `short`.

[`class int32`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/int32): Signed integer type, compatible with C `int`.

[`class int64`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/int64): Signed integer type, compatible with Python `int` and C `long`.

[`class int8`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/int8): Signed integer type, compatible with C `char`.

[`class int_`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/int64): Signed integer type, compatible with Python `int` and C `long`.

[`class ndarray`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/Tensor): A [`tf.Tensor`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/Tensor) represents a multidimensional array of elements.

[`class object_`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/object_): Any Python object.

[`class string_`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/string_): A byte string.

[`class uint16`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/uint16): Unsigned integer type, compatible with C `unsigned short`.

[`class uint32`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/uint32): Unsigned integer type, compatible with C `unsigned int`.

[`class uint64`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/uint64): Unsigned integer type, compatible with C `unsigned long`.

[`class uint8`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/uint8): Unsigned integer type, compatible with C `unsigned char`.

[`class unicode_`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/unicode_): A unicode string.

## Functions

[`abs(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/abs): TensorFlow variant of NumPy's `abs`.

[`absolute(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/absolute): TensorFlow variant of NumPy's `absolute`.

[`add(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/add): TensorFlow variant of NumPy's `add`.

[`all(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/all): TensorFlow variant of NumPy's `all`.

[`allclose(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/allclose): TensorFlow variant of NumPy's `allclose`.

[`amax(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/amax): TensorFlow variant of NumPy's `amax`.

[`amin(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/amin): TensorFlow variant of NumPy's `amin`.

[`angle(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/angle): TensorFlow variant of NumPy's `angle`.

[`any(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/any): TensorFlow variant of NumPy's `any`.

[`append(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/append): TensorFlow variant of NumPy's `append`.

[`arange(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/arange): TensorFlow variant of NumPy's `arange`.

[`arccos(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/arccos): TensorFlow variant of NumPy's `arccos`.

[`arccosh(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/arccosh): TensorFlow variant of NumPy's `arccosh`.

[`arcsin(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/arcsin): TensorFlow variant of NumPy's `arcsin`.

[`arcsinh(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/arcsinh): TensorFlow variant of NumPy's `arcsinh`.

[`arctan(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/arctan): TensorFlow variant of NumPy's `arctan`.

[`arctan2(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/arctan2): TensorFlow variant of NumPy's `arctan2`.

[`arctanh(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/arctanh): TensorFlow variant of NumPy's `arctanh`.

[`argmax(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/argmax): TensorFlow variant of NumPy's `argmax`.

[`argmin(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/argmin): TensorFlow variant of NumPy's `argmin`.

[`argsort(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/argsort): TensorFlow variant of NumPy's `argsort`.

[`around(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/around): TensorFlow variant of NumPy's `around`.

[`array(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/array): TensorFlow variant of NumPy's `array`.

[`array_equal(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/array_equal): TensorFlow variant of NumPy's `array_equal`.

[`asanyarray(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/asanyarray): TensorFlow variant of NumPy's `asanyarray`.

[`asarray(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/asarray): TensorFlow variant of NumPy's `asarray`.

[`ascontiguousarray(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/ascontiguousarray): TensorFlow variant of NumPy's `ascontiguousarray`.

[`atleast_1d(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/atleast_1d): TensorFlow variant of NumPy's `atleast_1d`.

[`atleast_2d(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/atleast_2d): TensorFlow variant of NumPy's `atleast_2d`.

[`atleast_3d(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/atleast_3d): TensorFlow variant of NumPy's `atleast_3d`.

[`average(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/average): TensorFlow variant of NumPy's `average`.

[`bitwise_and(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/bitwise_and): TensorFlow variant of NumPy's `bitwise_and`.

[`bitwise_not(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/bitwise_not): TensorFlow variant of NumPy's `bitwise_not`.

[`bitwise_or(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/bitwise_or): TensorFlow variant of NumPy's `bitwise_or`.

[`bitwise_xor(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/bitwise_xor): TensorFlow variant of NumPy's `bitwise_xor`.

[`broadcast_arrays(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/broadcast_arrays): TensorFlow variant of NumPy's `broadcast_arrays`.

[`broadcast_to(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/broadcast_to): TensorFlow variant of NumPy's `broadcast_to`.

[`cbrt(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/cbrt): TensorFlow variant of NumPy's `cbrt`.

[`ceil(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/ceil): TensorFlow variant of NumPy's `ceil`.

[`clip(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/clip): TensorFlow variant of NumPy's `clip`.

[`compress(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/compress): TensorFlow variant of NumPy's `compress`.

[`concatenate(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/concatenate): TensorFlow variant of NumPy's `concatenate`.

[`conj(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/conj): TensorFlow variant of NumPy's `conj`.

[`conjugate(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/conjugate): TensorFlow variant of NumPy's `conjugate`.

[`copy(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/copy): TensorFlow variant of NumPy's `copy`.

[`cos(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/cos): TensorFlow variant of NumPy's `cos`.

[`cosh(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/cosh): TensorFlow variant of NumPy's `cosh`.

[`count_nonzero(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/count_nonzero): TensorFlow variant of NumPy's `count_nonzero`.

[`cross(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/cross): TensorFlow variant of NumPy's `cross`.

[`cumprod(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/cumprod): TensorFlow variant of NumPy's `cumprod`.

[`cumsum(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/cumsum): TensorFlow variant of NumPy's `cumsum`.

[`deg2rad(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/deg2rad): TensorFlow variant of NumPy's `deg2rad`.

[`diag(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/diag): TensorFlow variant of NumPy's `diag`.

[`diag_indices(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/diag_indices): TensorFlow variant of NumPy's `diag_indices`.

[`diagflat(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/diagflat): TensorFlow variant of NumPy's `diagflat`.

[`diagonal(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/diagonal): TensorFlow variant of NumPy's `diagonal`.

[`diff(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/diff): TensorFlow variant of NumPy's `diff`.

[`divide(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/divide): TensorFlow variant of NumPy's `divide`.

[`divmod(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/divmod): TensorFlow variant of NumPy's `divmod`.

[`dot(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/dot): TensorFlow variant of NumPy's `dot`.

[`dsplit(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/dsplit): TensorFlow variant of NumPy's `dsplit`.

[`dstack(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/dstack): TensorFlow variant of NumPy's `dstack`.

[`einsum(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/einsum): TensorFlow variant of NumPy's `einsum`.

[`empty(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/empty): TensorFlow variant of NumPy's `empty`.

[`empty_like(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/empty_like): TensorFlow variant of NumPy's `empty_like`.

[`equal(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/equal): TensorFlow variant of NumPy's `equal`.

[`exp(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/exp): TensorFlow variant of NumPy's `exp`.

[`exp2(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/exp2): TensorFlow variant of NumPy's `exp2`.

[`expand_dims(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/expand_dims): TensorFlow variant of NumPy's `expand_dims`.

[`experimental_enable_numpy_behavior(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/experimental_enable_numpy_behavior): Enable NumPy behavior on Tensors.

[`expm1(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/expm1): TensorFlow variant of NumPy's `expm1`.

[`eye(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/eye): TensorFlow variant of NumPy's `eye`.

[`fabs(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/fabs): TensorFlow variant of NumPy's `fabs`.

[`finfo(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/finfo): TensorFlow variant of NumPy's `finfo`.

[`fix(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/fix): TensorFlow variant of NumPy's `fix`.

[`flatten(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/flatten): TensorFlow variant of NumPy's `flatten`.

[`flip(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/flip): TensorFlow variant of NumPy's `flip`.

[`fliplr(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/fliplr): TensorFlow variant of NumPy's `fliplr`.

[`flipud(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/flipud): TensorFlow variant of NumPy's `flipud`.

[`float_power(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/float_power): TensorFlow variant of NumPy's `float_power`.

[`floor(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/floor): TensorFlow variant of NumPy's `floor`.

[`floor_divide(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/floor_divide): TensorFlow variant of NumPy's `floor_divide`.

[`full(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/full): TensorFlow variant of NumPy's `full`.

[`full_like(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/full_like): TensorFlow variant of NumPy's `full_like`.

[`gcd(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/gcd): TensorFlow variant of NumPy's `gcd`.

[`geomspace(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/geomspace): TensorFlow variant of NumPy's `geomspace`.

[`greater(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/greater): TensorFlow variant of NumPy's `greater`.

[`greater_equal(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/greater_equal): TensorFlow variant of NumPy's `greater_equal`.

[`heaviside(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/heaviside): TensorFlow variant of NumPy's `heaviside`.

[`hsplit(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/hsplit): TensorFlow variant of NumPy's `hsplit`.

[`hstack(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/hstack): TensorFlow variant of NumPy's `hstack`.

[`hypot(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/hypot): TensorFlow variant of NumPy's `hypot`.

[`identity(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/identity): TensorFlow variant of NumPy's `identity`.

[`imag(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/imag): TensorFlow variant of NumPy's `imag`.

[`inner(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/inner): TensorFlow variant of NumPy's `inner`.

[`isclose(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/isclose): TensorFlow variant of NumPy's `isclose`.

[`iscomplex(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/iscomplex): TensorFlow variant of NumPy's `iscomplex`.

[`iscomplexobj(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/iscomplexobj): TensorFlow variant of NumPy's `iscomplexobj`.

[`isfinite(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/isfinite): TensorFlow variant of NumPy's `isfinite`.

[`isinf(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/isinf): TensorFlow variant of NumPy's `isinf`.

[`isnan(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/isnan): TensorFlow variant of NumPy's `isnan`.

[`isneginf(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/isneginf): TensorFlow variant of NumPy's `isneginf`.

[`isposinf(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/isposinf): TensorFlow variant of NumPy's `isposinf`.

[`isreal(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/isreal): TensorFlow variant of NumPy's `isreal`.

[`isrealobj(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/isrealobj): TensorFlow variant of NumPy's `isrealobj`.

[`isscalar(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/isscalar): TensorFlow variant of NumPy's `isscalar`.

[`issubdtype(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/issubdtype): Returns True if first argument is a typecode lower/equal in type hierarchy.

[`ix_(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/ix_): TensorFlow variant of NumPy's `ix_`.

[`kron(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/kron): TensorFlow variant of NumPy's `kron`.

[`lcm(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/lcm): TensorFlow variant of NumPy's `lcm`.

[`less(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/less): TensorFlow variant of NumPy's `less`.

[`less_equal(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/less_equal): TensorFlow variant of NumPy's `less_equal`.

[`linspace(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/linspace): TensorFlow variant of NumPy's `linspace`.

[`log(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/log): TensorFlow variant of NumPy's `log`.

[`log10(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/log10): TensorFlow variant of NumPy's `log10`.

[`log1p(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/log1p): TensorFlow variant of NumPy's `log1p`.

[`log2(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/log2): TensorFlow variant of NumPy's `log2`.

[`logaddexp(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/logaddexp): TensorFlow variant of NumPy's `logaddexp`.

[`logaddexp2(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/logaddexp2): TensorFlow variant of NumPy's `logaddexp2`.

[`logical_and(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/logical_and): TensorFlow variant of NumPy's `logical_and`.

[`logical_not(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/logical_not): TensorFlow variant of NumPy's `logical_not`.

[`logical_or(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/logical_or): TensorFlow variant of NumPy's `logical_or`.

[`logical_xor(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/logical_xor): TensorFlow variant of NumPy's `logical_xor`.

[`logspace(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/logspace): TensorFlow variant of NumPy's `logspace`.

[`matmul(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/matmul): TensorFlow variant of NumPy's `matmul`.

[`max(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/max): TensorFlow variant of NumPy's `max`.

[`maximum(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/maximum): TensorFlow variant of NumPy's `maximum`.

[`mean(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/mean): TensorFlow variant of NumPy's `mean`.

[`meshgrid(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/meshgrid): TensorFlow variant of NumPy's `meshgrid`.

[`min(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/min): TensorFlow variant of NumPy's `min`.

[`minimum(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/minimum): TensorFlow variant of NumPy's `minimum`.

[`mod(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/mod): TensorFlow variant of NumPy's `mod`.

[`moveaxis(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/moveaxis): TensorFlow variant of NumPy's `moveaxis`.

[`multiply(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/multiply): TensorFlow variant of NumPy's `multiply`.

[`nanmean(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/nanmean): TensorFlow variant of NumPy's `nanmean`.

[`nanprod(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/nanprod): TensorFlow variant of NumPy's `nanprod`.

[`nansum(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/nansum): TensorFlow variant of NumPy's `nansum`.

[`ndim(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/ndim): TensorFlow variant of NumPy's `ndim`.

[`negative(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/negative): TensorFlow variant of NumPy's `negative`.

[`nextafter(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/nextafter): TensorFlow variant of NumPy's `nextafter`.

[`nonzero(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/nonzero): TensorFlow variant of NumPy's `nonzero`.

[`not_equal(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/not_equal): TensorFlow variant of NumPy's `not_equal`.

[`ones(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/ones): TensorFlow variant of NumPy's `ones`.

[`ones_like(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/ones_like): TensorFlow variant of NumPy's `ones_like`.

[`outer(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/outer): TensorFlow variant of NumPy's `outer`.

[`pad(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/pad): TensorFlow variant of NumPy's `pad`.

[`polyval(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/polyval): TensorFlow variant of NumPy's `polyval`.

[`positive(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/positive): TensorFlow variant of NumPy's `positive`.

[`power(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/power): TensorFlow variant of NumPy's `power`.

[`prod(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/prod): TensorFlow variant of NumPy's `prod`.

[`promote_types(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/promote_types): TensorFlow variant of NumPy's `promote_types`.

[`ptp(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/ptp): TensorFlow variant of NumPy's `ptp`.

[`rad2deg(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/rad2deg): TensorFlow variant of NumPy's `rad2deg`.

[`ravel(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/ravel): TensorFlow variant of NumPy's `ravel`.

[`real(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/real): TensorFlow variant of NumPy's `real`.

[`reciprocal(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/reciprocal): TensorFlow variant of NumPy's `reciprocal`.

[`remainder(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/remainder): TensorFlow variant of NumPy's `remainder`.

[`repeat(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/repeat): TensorFlow variant of NumPy's `repeat`.

[`reshape(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/reshape): TensorFlow variant of NumPy's `reshape`.

[`result_type(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/result_type): TensorFlow variant of NumPy's `result_type`.

[`roll(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/roll): TensorFlow variant of NumPy's `roll`.

[`rot90(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/rot90): TensorFlow variant of NumPy's `rot90`.

[`round(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/round): TensorFlow variant of NumPy's `round`.

[`select(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/select): TensorFlow variant of NumPy's `select`.

[`shape(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/shape): TensorFlow variant of NumPy's `shape`.

[`sign(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/sign): TensorFlow variant of NumPy's `sign`.

[`signbit(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/signbit): TensorFlow variant of NumPy's `signbit`.

[`sin(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/sin): TensorFlow variant of NumPy's `sin`.

[`sinc(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/sinc): TensorFlow variant of NumPy's `sinc`.

[`sinh(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/sinh): TensorFlow variant of NumPy's `sinh`.

[`size(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/size): TensorFlow variant of NumPy's `size`.

[`sort(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/sort): TensorFlow variant of NumPy's `sort`.

[`split(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/split): TensorFlow variant of NumPy's `split`.

[`sqrt(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/sqrt): TensorFlow variant of NumPy's `sqrt`.

[`square(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/square): TensorFlow variant of NumPy's `square`.

[`squeeze(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/squeeze): TensorFlow variant of NumPy's `squeeze`.

[`stack(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/stack): TensorFlow variant of NumPy's `stack`.

[`std(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/std): TensorFlow variant of NumPy's `std`.

[`subtract(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/subtract): TensorFlow variant of NumPy's `subtract`.

[`sum(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/sum): TensorFlow variant of NumPy's `sum`.

[`swapaxes(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/swapaxes): TensorFlow variant of NumPy's `swapaxes`.

[`take(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/take): TensorFlow variant of NumPy's `take`.

[`take_along_axis(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/take_along_axis): TensorFlow variant of NumPy's `take_along_axis`.

[`tan(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/tan): TensorFlow variant of NumPy's `tan`.

[`tanh(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/tanh): TensorFlow variant of NumPy's `tanh`.

[`tensordot(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/tensordot): TensorFlow variant of NumPy's `tensordot`.

[`tile(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/tile): TensorFlow variant of NumPy's `tile`.

[`trace(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/trace): TensorFlow variant of NumPy's `trace`.

[`transpose(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/transpose): TensorFlow variant of NumPy's `transpose`.

[`tri(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/tri): TensorFlow variant of NumPy's `tri`.

[`tril(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/tril): TensorFlow variant of NumPy's `tril`.

[`triu(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/triu): TensorFlow variant of NumPy's `triu`.

[`true_divide(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/true_divide): TensorFlow variant of NumPy's `true_divide`.

[`vander(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/vander): TensorFlow variant of NumPy's `vander`.

[`var(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/var): TensorFlow variant of NumPy's `var`.

[`vdot(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/vdot): TensorFlow variant of NumPy's `vdot`.

[`vsplit(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/vsplit): TensorFlow variant of NumPy's `vsplit`.

[`vstack(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/vstack): TensorFlow variant of NumPy's `vstack`.

[`where(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/where): TensorFlow variant of NumPy's `where`.

[`zeros(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/zeros): TensorFlow variant of NumPy's `zeros`.

[`zeros_like(...)`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/experimental/numpy/zeros_like): TensorFlow variant of NumPy's `zeros_like`.

<br />

<br />

<br />

| ## Other Members ||
|---|---|
| e | `2.718281828459045` |
| inf | `inf` |
| newaxis | `None` |
| pi | `3.141592653589793` |

<br />