types

Special type annotations used in Tripy.

tripy.types.TensorLike

Type annotation for a parameter that is either a Tripy Tensor or a Python number that can be automatically converted into one.

alias of Union[tripy.Tensor, Number]

tripy.types.ShapeLike

Type annotation for a parameter that represents a shape.

alias of Sequence[Union[int, tripy.DimensionSize]]