-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Design test config and integrate in CC tests (#4051)
- Loading branch information
Showing
5 changed files
with
59 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Using models from https://github.com/openvinotoolkit/testdata | ||
# $find models -wholename "*.xml" | ||
|
||
- model: | ||
path: ${TESTDATA}/models/mobilenet_v2_1.4_224/mobilenet_v2_1.4_224_i8.xml | ||
- model: | ||
path: ${TESTDATA}/models/mobilenet_v2_1.0_224/mobilenet_v2_1.0_224_i8.xml | ||
- model: | ||
path: ${TESTDATA}/models/inception_v3/inception_v3_i8.xml | ||
- model: | ||
path: ${TESTDATA}/models/resnet_v1_50/resnet_v1_50_i8.xml | ||
- model: | ||
path: ${TESTDATA}/models/test_model/test_model_fp16.xml | ||
- model: | ||
path: ${TESTDATA}/models/test_model/test_model_fp32.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env python3 | ||
# Copyright (C) 2021 Intel Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
""" Common utilities for working with processes. | ||
""" | ||
|
||
import os | ||
|
||
|
||
def expand_env_vars(obj): | ||
"""Expand environment variables in provided object.""" | ||
|
||
if isinstance(obj, list): | ||
for i, value in enumerate(obj): | ||
obj[i] = expand_env_vars(value) | ||
elif isinstance(obj, dict): | ||
for name, value in obj.items(): | ||
obj[name] = expand_env_vars(value) | ||
else: | ||
obj = os.path.expandvars(obj) | ||
return obj |