onnxruntime/tools/python/util/__init__.py
Scott McKay c84bb9df9f
Add ability to track per operator types in reduced build config. (#6428)
* Add ability to generate configuration that includes required types for individual operators, to allow build size reduction based on that.
  - Add python bindings for ORT format models
    - Add script to update bindings and help info
  - Add parsing of ORT format models
  - Add ability to enable type reduction to config generation
  - Update build.py to only allow operator/type reduction via config
    - simpler to require config to be generated first
    - can't mix a type aware (ORT format model only) and non-type aware config as that may result in insufficient types being enabled
  - Add script to create reduced build config
  - Update CIs
2021-01-29 07:59:51 +10:00

13 lines
469 B
Python

# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from .get_azcopy import get_azcopy
from .logger import get_logger
from .platform import (is_windows, is_macOS, is_linux)
from .run import run
try:
import flatbuffers # noqa
from .reduced_build_config_parser import parse_config
except ImportError:
get_logger('tools_python_utils').info('flatbuffers module is not installed. parse_config will not be available')