mirror of
https://github.com/ROCm/jax.git
synced 2025-04-19 05:16:06 +00:00
Address drastic slowdown in mypy runtime
This commit is contained in:
parent
3b35e9811d
commit
9f811ba54d
2
.github/workflows/ci-build.yaml
vendored
2
.github/workflows/ci-build.yaml
vendored
@ -23,7 +23,7 @@ permissions:
|
||||
jobs:
|
||||
lint_and_typecheck:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 20
|
||||
timeout-minutes: 5
|
||||
steps:
|
||||
- name: Cancel previous
|
||||
uses: styfle/cancel-workflow-action@0.11.0
|
||||
|
5
jax/_src/third_party/scipy/betaln.py
vendored
5
jax/_src/third_party/scipy/betaln.py
vendored
@ -3,7 +3,10 @@ import jax.numpy as jnp
|
||||
from jax._src.typing import Array, ArrayLike
|
||||
from jax._src.numpy.lax_numpy import _promote_args_inexact
|
||||
|
||||
def algdiv(a: ArrayLike, b: ArrayLike) -> Array:
|
||||
# Note: for mysterious reasons, annotating this leads to very slow mypy runs.
|
||||
# def algdiv(a: ArrayLike, b: ArrayLike) -> Array:
|
||||
|
||||
def algdiv(a, b):
|
||||
"""
|
||||
Compute ``log(gamma(a))/log(gamma(a + b))`` when ``b >= 8``.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user