mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-16 21:00:14 +00:00
* Include ORT format model conversion scripts and infrastructure in ORT python package. - tweak existing script setup so it can be easily run directly and from the ORT python package Add config file and readme for Android minimal build package Update ORT Mobile doco Disable warning if 'all' optimizations are enabled but NCHWc transformer is excluded (device specific optimizations don't apply in this scenario so the warning is moot). * Address PR comments
12 lines
504 B
Python
12 lines
504 B
Python
#!/usr/bin/env python3
|
|
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
# Licensed under the MIT License.
|
|
|
|
# This script is a stub that uses the model conversion script from the util subdirectory.
|
|
# We do it this way so we can use relative imports in that script, which makes it easy to include
|
|
# in the ORT python package (where it must use relative imports)
|
|
from util.convert_onnx_models_to_ort import convert_onnx_models_to_ort
|
|
|
|
|
|
if __name__ == '__main__':
|
|
convert_onnx_models_to_ort()
|