Closed jikechao closed 3 days ago
Hi @jikechao, thanks for reporting this bug. Could you please try pre-release package: https://pypi.org/project/openvino/2023.2.0.dev20230922/
Best regards, Roman
@rkazants This issue still exists in the Nightly version (openvino-nightly 2023.2.0.dev20231101
).
Hi @mg-intel,
This is the CPU plugin issue. It is unable to compute Transpose for 1D tensor and order=[0]. Here is a reproducer:
import numpy as np
import openvino.runtime.opset9 as ov
from openvino.runtime import Model, Core
# create a model with TopK
param = ov.parameter([2], name="data", dtype=np.float32)
order = ov.constant(np.array([0], dtype=np.int32))
transpose = ov.transpose(param, order)
model = Model([transpose.output(0)], [param], "model")
# infer it on CPU
data = np.array([0.1, 0.2], dtype=np.float32)
core = Core()
compiled_model = core.compile_model(model, "CPU")
output = compiled_model.infer_new_request({0: data})
print("original data = ", data)
print("result = ", output)
Best regards, Roman
This issue will be closed in a week because of 9 months of no activity.
This issue was closed because it has been stalled for 9 months with no activity.
OpenVINO Version
2023.1.0-12185-9e6b00e51cd-releases/2023/1
Operating System
Ubuntu 18.04 (LTS)
Device used for inference
CPU
Framework
Keras (TensorFlow 2)
Model used
self defined model shown in the following script
Issue description
The operator
keras.layers.Permute(dims=[])
in PyTorch means keeping the same dims as inputs. However, OpenVINO outputs random results. Thus, we should correct the implementation ofPermute
in OpenVINO to keep the semantics with that PyTorch.Step-by-step reproduction
Relevant log output
Issue submission checklist