# Copyright 2023-2024 Arm Limited and/or its affiliates. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. # pyre-unsafe import os import struct import tempfile from typing import List import numpy as np from ethosu.vela import vela # Pack either input or output tensor block, compose the related arrays into # per-io structs to simplify runtime use. def vela_bin_pack_io(prefix, data): ios = struct.pack("