Skip to content

Commit

Permalink
Revert "Update dependency for exportable code (openvinotoolkit#2732)"
Browse files Browse the repository at this point in the history
This reverts commit e58b7f9.
  • Loading branch information
eugene123tw committed Jan 15, 2024
1 parent 32a7fa8 commit 1f0f409
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ results/
build/
dist/
!src/otx/recipes/**
src/otx/recipes/**/__pycache__/
*egg-info

*.pth
Expand Down
2 changes: 1 addition & 1 deletion src/otx/api/usecases/exportable_code/demo/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
openvino==2023.0
openvino-model-api==0.1.8
otx==1.4.4
otx @ git+https://github.com/openvinotoolkit/training_extensions/@4abe2ea89680d4bdf54f97e1fa78abebd65c7e36#egg=otx
numpy>=1.21.0,<=1.23.5 # np.bool was removed in 1.24.0 which was used in openvino runtime
2 changes: 0 additions & 2 deletions src/otx/core/ov/ops/infrastructures.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,6 @@ def from_ov(cls, ov_op):
if not np.array_equal(data, data_):
logger.warning(f"Overflow detected in {op_name}")
data = torch.from_numpy(data_)
elif data.dtype == np.uint16:
data = torch.from_numpy(data.astype(np.int32))
else:
data = torch.from_numpy(data)

Expand Down
1 change: 0 additions & 1 deletion src/otx/core/ov/ops/type_conversions.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"u1": torch.uint8, # no type in torch
"u4": torch.uint8, # no type in torch
"u8": torch.uint8,
"u16": torch.int32, # no type in torch
"u32": torch.int32, # no type in torch
"u64": torch.int64, # no type in torch
"i4": torch.int8, # no type in torch
Expand Down
2 changes: 0 additions & 2 deletions tests/unit/core/ov/graph/test_ov_graph_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# SPDX-License-Identifier: Apache-2.0
#

import pytest
from otx.core.ov.graph.graph import Graph
from otx.core.ov.graph.utils import (
get_constant_input_nodes,
Expand Down Expand Up @@ -39,7 +38,6 @@ def test_handle_merging_into_batchnorm():


@e2e_pytest_unit
@pytest.mark.skip(reason="Updated models are not compatible with the paired batchnorm converter")
def test_handle_paired_batchnorm():
graph = get_graph()
handle_paired_batchnorm(graph)
Expand Down

0 comments on commit 1f0f409

Please sign in to comment.