This repository was archived by the owner on May 6, 2025. It is now read-only.
File tree 2 files changed +17
-7
lines changed
2 files changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ We happily welcome contributions!
35
35
36
36
37
37
38
+
38
39
## Contents
39
40
* [ Colab Notebooks] ( #colab-notebooks )
40
41
* [ Installation] ( #installation )
Original file line number Diff line number Diff line change 14
14
15
15
"""Utilities for testing."""
16
16
17
- from typing import Any , Sequence , Dict
18
17
import dataclasses
19
18
import logging
19
+ import os
20
+ from typing import Dict , Sequence
20
21
21
22
from absl import flags
22
23
from absl .testing import parameterized
23
-
24
24
import jax
25
25
from jax import config
26
+ from jax import dtypes as _dtypes
26
27
from jax import jit
27
28
from jax import vmap
28
29
import jax .numpy as np
29
30
import numpy as onp
30
- from jax import dtypes as _dtypes
31
31
32
- flags .DEFINE_integer ('num_generated_cases' , 10000 ,
33
- 'The maximum number of test cases in combinatorial tests.' )
34
- flags .DEFINE_string ('jax_test_dut' , None ,
35
- '' )
32
+
33
+ flags .DEFINE_string (
34
+ 'jax_test_dut' ,
35
+ '' ,
36
+ help =
37
+ 'Describes the device under test in case special consideration is required.'
38
+ )
39
+
40
+ flags .DEFINE_integer (
41
+ 'num_generated_cases' ,
42
+ int (os .getenv ('JAX_NUM_GENERATED_CASES' , '10' )),
43
+ help = 'Number of generated cases to test'
44
+ )
36
45
37
46
FLAGS = flags .FLAGS
38
47
You can’t perform that action at this time.
0 commit comments