2021-09-30 00:03:40 +08:00
|
|
|
# Part of the LLVM Project, 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
|
|
|
|
# Also available under a BSD-style license. See LICENSE.
|
2021-07-10 03:22:45 +08:00
|
|
|
|
|
|
|
import argparse
|
|
|
|
|
2022-08-30 04:32:18 +08:00
|
|
|
from torch_mlir_e2e_test.serialization import serialize_all_tests_to
|
2021-07-10 03:22:45 +08:00
|
|
|
|
2022-03-04 03:21:09 +08:00
|
|
|
from . import hf_sequence_classification
|
2022-04-21 20:49:24 +08:00
|
|
|
from . import vision_models
|
2022-05-18 19:48:51 +08:00
|
|
|
from . import train_models
|
2021-07-10 03:22:45 +08:00
|
|
|
|
|
|
|
|
|
|
|
def _get_argparse():
|
|
|
|
parser = argparse.ArgumentParser(
|
|
|
|
description="Generate assets for TorchScript E2E tests")
|
|
|
|
parser.add_argument("--output_dir", help="The directory to put assets in.")
|
|
|
|
return parser
|
|
|
|
|
|
|
|
|
|
|
|
def main():
|
|
|
|
args = _get_argparse().parse_args()
|
2022-03-26 05:47:11 +08:00
|
|
|
serialize_all_tests_to(args.output_dir)
|
2021-07-10 03:22:45 +08:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
main()
|