Attend the Women in ML Symposium on December 7 Register now


Stay organized with collections Save and categorize content based on your preferences.

This symbol is a type alias.

Union of all types that can be converted to a tf.Tensor by tf.convert_to_tensor.


This definition may be used in user code. Additional types may be added in the future as more input types are supported.


def foo(x: TensorLike):

This definition passes static type verification for:

foo(tf.constant([1, 2, 3]))
foo([1, 2, 3])
foo(np.array([1, 2, 3]))