einx v0.4.3
Fixed
-
Annotate tensor parameters with
typing.Anyinstead oftyping.TypeVar.Previously, a
typing.TypeVarwas used for all input and output tensors of an operation. However, this typing constraint
does not always hold (e.g., operations accept mixed-type input tensors, Python scalars and tensor factories, and output tensor types depend on dynamic factors such as the selected backend). Tensor type annotations now usetyping.Anyto reflect the actual behavior.