Skip to content

Commit

Permalink
MAINT: address linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Apr 5, 2024
1 parent b7a156b commit d6e2cae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/jax_benchmark/dot_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ def main() -> int:
args = parser.parse_args()
mute_warnings()
benchmarks = run_benchmark(
shape=tuple(int(i) for i in args.shape.split("x")),
shape=tuple( # pyright:ignore[reportArgumentType]
int(i) for i in args.shape.split("x")
),
repeat=args.repeat,
number=args.number,
)
Expand Down
4 changes: 2 additions & 2 deletions src/jax_benchmark/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@


def enable_x64() -> None:
from jax.config import config # pyright: ignore[reportPrivateImportUsage]
import jax

config.update("jax_enable_x64", True)
jax.config.update("jax_enable_x64", True)


def get_machine_info() -> dict:
Expand Down

0 comments on commit d6e2cae

Please sign in to comment.