Lines Matching +full:- +full:- +full:header
1 # SPDX-FileCopyrightText: Copyright 2010-2024 Arm Limited and/or its affiliates <open-source-office…
3 # SPDX-License-Identifier: Apache-2.0
9 # www.apache.org/licenses/LICENSE-2.0
44 INT32_MIN = -2147483648
46 INT64_MIN = -9223372036854775808
48 INT16_MIN = -32768
50 INT8_MIN = -128
52 INT4_MIN = -8
56 CLANG_FORMAT = 'clang-format-12 -i' # For formatting generated headers.
211 header = ','.join(map(str, data.shape))
212 np.savetxt(file, data.reshape(-1, data.shape[-1]), header=header, delimiter=',')
313 print("Generating C header wrapper {}...".format(filepath))
337 def write_c_config_header(self, write_common_parameters=True) -> None:
345 print("Writing C header with config data {}...".format(filepath))
361 def get_data_file_name_info(self, name_prefix) -> (str, str):
366 def generate_c_array(self, name, array, datatype="int8_t", const="const ", pack=False) -> None:
387 print("Generating C header {}...".format(filepath))
393 for i in range(size - 1):
395 f.write(" %d\n" % w[size - 1])
404 filter_x = (self.filter_x - 1) * self.dilation_x + 1
405 filter_y = (self.filter_y - 1) * self.dilation_y + 1
407 pad_along_width = max((x_output - 1) * self.stride_x + filter_x - x_input, 0)
408 pad_along_height = max((y_output - 1) * self.stride_y + filter_y - y_input, 0)
426 def generate_data(self, input_data=None, weights=None, biases=None) -> None:
548 command = "{} -o {} -c -b {} {}".format(flatc, self.headers_dir, schema, json_input)
558 def to_bytes(self, tensor_data, type_size) -> bytes: