def test_no_ie_ngraph(self, mock_find):
     mock_find.return_value = False
     with pytest.raises(SystemExit) as e, self.assertLogs(
             log.getLogger(), level="ERROR") as cm:
         subprocess_main()
     assert e.value.code == 1
     res = [
         i for i in cm.output if
         'Consider building the Inference Engine and nGraph Python APIs from sources'
         in i
     ]
     assert res
Beispiel #2
0
#!/usr/bin/env python3

# Copyright (C) 2018-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

if __name__ == "__main__":
    from mo.subprocess_main import subprocess_main
    subprocess_main(framework='caffe')
Beispiel #3
0
#!/usr/bin/env python3

# Copyright (C) 2018-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

if __name__ == "__main__":
    from mo.subprocess_main import subprocess_main
    subprocess_main(framework='mxnet')
Beispiel #4
0
#!/usr/bin/env python3

# Copyright (C) 2018-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

if __name__ == "__main__":
    from mo.subprocess_main import subprocess_main
    subprocess_main(framework='pdpd')
Beispiel #5
0
# Copyright (C) 2018-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

from mo.subprocess_main import subprocess_main
subprocess_main(framework=None)
Beispiel #6
0
#!/usr/bin/env python3

# Copyright (C) 2018-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

if __name__ == "__main__":
    from mo.subprocess_main import subprocess_main
    subprocess_main(framework='kaldi')
Beispiel #7
0
#!/usr/bin/env python3

# Copyright (C) 2018-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

if __name__ == "__main__":
    from mo.subprocess_main import subprocess_main
    subprocess_main(framework='onnx')
Beispiel #8
0
#!/usr/bin/env python3

# Copyright (C) 2018-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

if __name__ == "__main__":
    from mo.subprocess_main import subprocess_main
    subprocess_main(framework='paddle')
Beispiel #9
0
#!/usr/bin/env python3

# Copyright (C) 2018-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0


if __name__ == "__main__":
    from mo.subprocess_main import subprocess_main
    subprocess_main(framework='tf')