/cmsis-nn-latest/Tests/UnitTest/ |
D | test_settings.py | 58 def __init__(self, argument 210 def save_multiple_dim_array_in_txt(self, file, data): argument 214 def load_multiple_dim_array_from_txt(self, file): argument 220 def convert_tensor_np(self, tensor_in, converter, *qminmax): argument 231 def convert_tensor(self, tensor_in, converter, *qminmax): argument 249 … def get_randomized_data(self, dims, npfile, regenerate, decimals=0, minrange=None, maxrange=None): argument 272 def get_randomized_input_data(self, input_data, input_shape=None): argument 284 def get_randomized_bias_data(self, biases): argument 298 def format_output_file(self, file): argument 309 def write_c_header_wrapper(self): argument [all …]
|
D | model_extractor.py | 35 def __init__(self, dataset, schema_file, tflite_model): argument 47 def from_bytes(self, tensor_data, type_size) -> list: argument 65 def tflite_to_json(self, tflite_input, schema): argument 84 def write_c_config_header(self, name_prefix, op_name, op_index) -> None: argument 144 def shape_to_config(self, input_shape, filter_shape, output_shape, layer_name): argument 170 def extract_from_model(self, json_file, tensor_details): argument 273 def generate_data(self, input_data=None, weights=None, biases=None) -> None: argument
|
D | softmax_settings.py | 25 def __init__(self, argument 77 def calc_softmax_params(self): argument 90 def write_c_config_header(self) -> None: argument 106 def get_softmax_randomized_input_data(self, input_data, input_shape): argument 116 def generate_data(self, input_data=None, weights=None, biases=None) -> None: argument
|
D | lstm_settings.py | 26 def __init__(self, argument 97 … def generate_data(self, input_data=None, weights=None, hidden_weights=None, biases=None) -> None: argument 311 def calc_scales(self, input_scale, output_state_scale, cell_scale): argument 342 …def calc_effective_bias(self, interpreter, zero_point, weight_tensor, bias_tensor, has_bias=True) … argument 363 def write_c_config_header(self) -> None: argument
|
D | conv_settings.py | 27 def __init__(self, argument 125 def write_c_config_header(self) -> None: argument 146 def generate_quantize_per_channel_multiplier(self): argument 163 def generate_int4_scale(self, scale, shift, input_scale): argument 177 …def quantize_float_data(self, data=None, quantization_bit_range=8, quantization_type="affine", tf_… argument 205 def generate_data(self, input_data=None, weights=None, biases=None) -> None: argument
|
D | add_mul_settings.py | 26 def __init__(self, argument 74 def generate_data(self, input_data1=None, input_data2=None) -> None: argument 139 def write_c_config_header(self) -> None: argument
|
D | svdf_settings.py | 24 def __init__(self, argument 118 …def calc_multipliers_and_shifts(self, input_scale, weights_1_scale, weights_2_scale, state_scale, … argument 124 def write_c_config_header(self) -> None: argument 149 …def generate_data(self, input_data=None, weights=None, biases=None, time_data=None, state_data=Non… argument 255 def get_scale_and_zp(self, layer): argument
|
D | pooling_settings.py | 25 def __init__(self, argument 74 def generate_data(self, input_data=None) -> None: argument 125 def write_c_config_header(self) -> None: argument
|
D | fully_connected_settings.py | 26 def __init__(self, argument 115 def write_c_config_header(self) -> None: argument 130 def quantize_multiplier(self, weights_scale): argument 137 def generate_data(self, input_data=None, weights=None, biases=None) -> None: argument
|
/cmsis-nn-latest/Tests/UnitTest/RefactoredTestGen/Lib/ |
D | op_utils.py | 24 def __init__(self, params, tensors, scales, effective_scales, aliases={}): argument
|