mirror of
https://github.com/ROCm/jax.git
synced 2025-04-16 11:56:07 +00:00
Drop fastcache dependency, which isn't necessary on Python 3. (#1995)
Drop protobuf and six dependencies from travis configuration.
This commit is contained in:
parent
a5b6e8abf3
commit
681ba37f7e
@ -24,7 +24,7 @@ before_install:
|
||||
- conda config --add channels conda-forge
|
||||
- conda update -q conda
|
||||
install:
|
||||
- conda install --yes python=$TRAVIS_PYTHON_VERSION pip six protobuf>=3.6.0 absl-py opt_einsum numpy scipy pytest-xdist pytest-benchmark fastcache
|
||||
- conda install --yes python=$TRAVIS_PYTHON_VERSION pip absl-py opt_einsum numpy scipy pytest-xdist pytest-benchmark
|
||||
# The jaxlib version should match the minimum jaxlib version in
|
||||
# jax/lib/__init__.py. This tests JAX PRs against the oldest permitted
|
||||
# jaxlib.
|
||||
|
@ -21,7 +21,6 @@ import functools
|
||||
import itertools as it
|
||||
import types
|
||||
|
||||
import fastcache
|
||||
import numpy as onp
|
||||
|
||||
|
||||
@ -177,9 +176,9 @@ def split_merge(predicate, xs):
|
||||
return lhs, rhs, merge
|
||||
|
||||
def cache(max_size=4096):
|
||||
return fastcache.clru_cache(maxsize=max_size)
|
||||
return functools.lru_cache(maxsize=max_size)
|
||||
|
||||
memoize = fastcache.clru_cache(maxsize=None)
|
||||
memoize = functools.lru_cache(maxsize=None)
|
||||
|
||||
def prod(xs):
|
||||
out = 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user