* Moved telemetry to repo root directory from MO * New telemetry package in the "openvino" sub-directory * Removed telemetry from the MO BOM * Updated MO BOM and added stub file for telemetry * Fixed license header * Fixed license headers and cleaned up the telemetry setup.py * Fixed import * Added temporary dependency for openvino-telemetry * Added ignore for pylint issues * Fixed import statements * Updated imports in the telemetry library * Removed telemetry library. Added link to another private repo * Removed redundant start_session event for the MO * Changed approach to import the telemetry library * Minor code refactoring * Updated MO telemetry events sending messages * Refactor sending events for the IE runtime check * Disable forcing warnings for deprecated methods * Removed changes from the requirements.txt to install telemetry library to avoid merge conflicts * Update copyright in the model-optimizer/mo/utils/telemetry_stub.py Co-authored-by: Gleb Kazantaev <gleb.nnstu@gmail.com> Co-authored-by: Gleb Kazantaev <gleb.nnstu@gmail.com>
14 lines
340 B
Python
14 lines
340 B
Python
# Copyright (C) 2018-2021 Intel Corporation
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
def get_ie_version():
|
|
try:
|
|
from openvino.inference_engine import get_version # pylint: disable=import-error,no-name-in-module
|
|
return get_version()
|
|
except:
|
|
return None
|
|
|
|
|
|
if __name__ == "__main__":
|
|
print(get_ie_version())
|