|
ONE - On-device Neural Engine
|
Data Structures | |
| class | TestCase |
| class | TestRunner |
Functions | |
| _dump_npy_included_json (str output_dir, dict json_content) | |
| _str_to_npy_dtype (str dtype_str) | |
| dict | gen_random_tensor (str dtype_str, typing.Tuple[int] scale_shape, typing.Tuple[int] zerop_shape, int quantized_dimension, typing.Optional[typing.Tuple[int]] value_shape=None) |
|
protected |
Dump json and npy files to output_dir
Definition at line 7 of file test_utils.py.
References type.
Referenced by test_utils.TestRunner.run().
|
protected |
Definition at line 42 of file test_utils.py.
Referenced by gen_random_tensor().
| dict test_utils.gen_random_tensor | ( | str | dtype_str, |
| typing.Tuple[int] | scale_shape, | ||
| typing.Tuple[int] | zerop_shape, | ||
| int | quantized_dimension, | ||
| typing.Optional[typing.Tuple[int]] | value_shape = None |
||
| ) |
Definition at line 54 of file test_utils.py.
References _str_to_npy_dtype().