GithubHelp home page GithubHelp logo

Comments (4)

alvoron avatar alvoron commented on June 3, 2024 1

Hi @dkurt
Thank you for you feedback!

It seems we could support Slice operation natively, since it's presented in ACL: https://arm-software.github.io/ComputeLibrary/latest/classarm__compute_1_1_n_e_slice.xhtml

We'll plan to support Slice.

from openvino_contrib.

dmitryermilov avatar dmitryermilov commented on June 3, 2024 1

With PR #470 , the --use_legacy_frontend model on arm64 produces:

-0.187376
-0.857422
0.599576
-1.00753
0.591569
-1.41945
-1.16889
0.599556
5.81516
0.357172
0.113763
-1.51495

from openvino_contrib.

dgurulev avatar dgurulev commented on June 3, 2024 1

With #473 we have result for mentioned test data
-0.187376 -0.857422 0.599577 -1.00753 0.591569 -1.41945 -1.16889 0.599557 5.81516 0.357172 0.113763 -1.51495
on aarch64. These results matched w/ results we have on ARM if use --use_legacy_frontend

from openvino_contrib.

dkurt avatar dkurt commented on June 3, 2024

With --use_legacy_frontend model is compiled but there is an accuracy problem.

ONNX model: https://drive.google.com/file/d/10xXdXNk_AD9_X8BPSjk-P-pgRJzZl3Oi/view?usp=sharing
Test data: https://drive.google.com/file/d/1joc6OdO2uFWbduHLawuBsGc2NS3x4TAt/view?usp=sharing

test script:

import numpy as np
from openvino.runtime import Core, Tensor

with open('stop.txt', 'rt') as f:
    values = f.read().strip().split('\n')
    values = np.array([float(v) for v in values])

core = Core()
model = core.read_model('model.xml')
model = core.compile_model(model, 'CPU')
ireq = model.create_infer_request()

values = Tensor(values.reshape(1, -1).astype(np.float32))

ireq.set_input_tensor(values)
ireq.infer()
out = ireq.get_output_tensor()
for i, v in enumerate(out.data.reshape(-1)):
    print(i, v)

Output:

x86 CPU (correct):

0 -0.18749128
1 -0.8572464
2 0.6001833
3 -1.0074832
4 0.5908476
5 -1.4191537
6 -1.1693075
7 0.59931487
8 5.8151817
9 0.35858256
10 0.11403769
11 -1.5154142

ARM64 CPU (wrong):

0 -0.026862225
1 -0.03582457
2 -0.05018249
3 0.008348335
4 -0.0019003607
5 0.018424992
6 -0.020563617
7 -0.07890658
8 -0.027402868
9 0.0029288789
10 -0.15934415
11 0.18829146

from openvino_contrib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.