Warning
This page was created from a pull request.
jax.lax.dot_general¶
-
jax.lax.
dot_general
(lhs, rhs, dimension_numbers, precision=None)[source]¶ More general contraction operator.
Wraps XLA’s DotGeneral operator.
- Parameters
lhs (
Any
) – an arrayrhs (
Any
) – an arraydimension_numbers (
Tuple
[Tuple
[Sequence
[int
],Sequence
[int
]],Tuple
[Sequence
[int
],Sequence
[int
]]]) – a tuple of tuples of the form ((lhs_contracting_dims, rhs_contracting_dims), (lhs_batch_dims, rhs_batch_dims))precision (
Union
[None
,Any
,Tuple
[Any
,Any
]]) – Optional. EitherNone
, which means the default precision for the backend, alax.Precision
enum value (Precision.DEFAULT
,Precision.HIGH
orPrecision.HIGHEST
) or a tuple of twolax.Precision
enums indicating precision oflhs`
andrhs
.
- Return type
- Returns
An array containing the result.