mirror of
https://github.com/ROCm/jax.git
synced 2025-04-16 03:46:06 +00:00
target_total_secs has type int
but used as type None
"filename": "benchmarks/benchmark.py" "warning_type": "Incompatible variable type [9]", "warning_message": " target_total_secs is declared to have type `int` but is used as type `None`." "warning_line": 86 "fix": int to Optional[int]
This commit is contained in:
parent
f905d989c1
commit
88f6051233
@ -83,7 +83,7 @@ def benchmark(f: Callable[[], Any], iters: Optional[int] = None,
|
||||
|
||||
|
||||
def benchmark_suite(prepare: Callable[..., Callable], params_list: List[Dict],
|
||||
name: str, target_total_secs: int = None):
|
||||
name: str, target_total_secs: Optional[int] = None):
|
||||
"""Benchmarks a function for several combinations of parameters.
|
||||
|
||||
Prints the summarized results in a table..
|
||||
|
Loading…
x
Reference in New Issue
Block a user