| # Copyright 2021 The IREE Authors |
| # Licensed under the Apache License v2.0 with LLVM Exceptions. |
| # See https://llvm.org/LICENSE.txt for license information. |
| # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| # * compile_android_modules.py |
| # * benchmark_modules_on_android.py |
| # The script assumes model artifacts are in google bucket and they are zipped in |
| for model_benchmark in configuration.MODEL_BENCHMARKS: |
| print(f"Preparing benchmark files for {model_benchmark.name}") |
| f"gs://iree-model-artifacts/{model_benchmark.model_artifacts_name}", "." |
| subprocess.run(args=["tar", "-xvf", model_benchmark.model_artifacts_name], |
| "cp", model_benchmark.flagfile_path, |
| configuration.get_flagfile_name(model_benchmark.name) |
| if __name__ == "__main__": |