m2m模型翻译
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
496 B

6 months ago
  1. # -------------------------------------------------------------------------
  2. # Copyright (c) Microsoft Corporation. All rights reserved.
  3. # Licensed under the MIT License.
  4. # --------------------------------------------------------------------------
  5. import os
  6. import sys
  7. sys.path.append(os.path.join(os.path.dirname(__file__), "models", "gpt2"))
  8. import convert_to_onnx
  9. # added for backward compatible
  10. import gpt2_helper
  11. sys.path.append(os.path.join(os.path.dirname(__file__), "models", "t5"))