mirror of
https://github.com/ROCm/jax.git
synced 2025-04-18 21:06:06 +00:00
Support older Numpy versions that don't have np.quantile.
Fix typo.
This commit is contained in:
parent
e71680212f
commit
eefd551767
@ -2486,7 +2486,7 @@ def cov(m, y=None, rowvar=True, bias=False, ddof=None, fweights=None,
|
||||
return true_divide(dot(X, X_T.conj()), f).squeeze()
|
||||
|
||||
|
||||
@_wraps(onp.quantile)
|
||||
@_wraps(getattr(onp, "quantile", None))
|
||||
def quantile(a, q, axis=None, out=None, overwrite_input=False,
|
||||
interpolation="linear", keepdims=False):
|
||||
if overwrite_input or out is not None:
|
||||
|
@ -259,7 +259,7 @@ NamedtupleNode = NodeType('namedtuple',
|
||||
class Partial(functools.partial):
|
||||
"""A version of functools.partial that works in pytrees.
|
||||
|
||||
Use it for partial function evaluation in a way that is compatibile with JAX's
|
||||
Use it for partial function evaluation in a way that is compatible with JAX's
|
||||
transformations, e.g., ``Partial(func, *args, **kwargs)``.
|
||||
|
||||
(You need to explicitly opt-in to this behavior because we didn't want to give
|
||||
|
Loading…
x
Reference in New Issue
Block a user