Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

338 B
Raw Blame
# -*- coding: utf-8 -*-
# Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

import numpy as np

from openvino import Tensor, Type


def test_run():
    tensor = Tensor(np.random.randn(1, 3, 224, 224).astype(np.float32))
    assert tensor.element_type == Type.f32


if __name__ == "__main__":
    test_run()