Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

operation is not registered #746

Open
leiwen83 opened this issue Aug 16, 2021 · 4 comments
Open

operation is not registered #746

leiwen83 opened this issue Aug 16, 2021 · 4 comments

Comments

@leiwen83
Copy link

leiwen83 commented Aug 16, 2021

Hi,

I test mace_cc_benchmark over Xiaomi11 ultra phone which is rooted.
It is built with the command: bash tools/cmake/cmake-build-arm64-v8a.sh with android ndk:android-ndk-r21e

But it reported follow error when I try to run:

star:/data/cnn # ./mace_cc_benchmark                                           
W /data/Android/mace/mace/utils/thread_pool.cc:108] CPU maybe isolated, don't set CPU affinity
I /data/Android/mace/mace/core/memory/rpcmem/rpcmem.cc:32] Rpcmem is supported. type: 0
W /data/Android/mace/mace/utils/thread_pool.cc:108] CPU maybe isolated, don't set CPU affinity
Benchmark                                                              Time(ns) Iterations Input(MB/s)     GMACPS
-----------------------------------------------------------------------------------------------------------------
F /data/Android/mace/mace/core/registry/ops_registry.cc:115] Check failed: registry_.count(op_type) != 0 AddN operation is not registered. op_type=AddN
F /data/Android/mace/mace/core/registry/ops_registry.cc:115] backtrace:
F /data/Android/mace/mace/core/registry/ops_registry.cc:115]  pc 0x64e12785bc 
F /data/Android/mace/mace/core/registry/ops_registry.cc:115]  pc 0x64e127c558 
F /data/Android/mace/mace/core/registry/ops_registry.cc:115]  pc 0x64e127c504 
F /data/Android/mace/mace/core/registry/ops_registry.cc:115]  pc 0x64e127c7e0 
F /data/Android/mace/mace/core/registry/ops_registry.cc:115]  pc 0x64e127c8d4 
F /data/Android/mace/mace/core/registry/ops_registry.cc:115]  pc 0x64e128e604 
F /data/Android/mace/mace/core/registry/ops_registry.cc:115]  pc 0x64e129c3b4 
F /data/Android/mace/mace/core/registry/ops_registry.cc:115]  pc 0x64e129a958 
F /data/Android/mace/mace/core/registry/ops_registry.cc:115]  pc 0x64e1272d54 
F /data/Android/mace/mace/core/registry/ops_registry.cc:115]  pc 0x64e1247e04 
F /data/Android/mace/mace/core/registry/ops_registry.cc:115]  pc 0x64e12392a8 
F /data/Android/mace/mace/core/registry/ops_registry.cc:115]  pc 0x64e1244a78 
F /data/Android/mace/mace/core/registry/ops_registry.cc:115]  pc 0x7613b24058 __libc_init

How to fix it?

Thx

@leiwen83
Copy link
Author

leiwen83 commented Aug 17, 2021

V1.0.4 also has problem,, but it would meet error after several op test.


star:/data/cnn # ./mace_cc_benchmark                                           
Benchmark                                                           Time(ns) Iterations Input(MB/s)     GMACPS
--------------------------------------------------------------------------------------------------------------
MACE_BM_ADDN_2_1_128_128_32_float_CPU                                1321442        720    3174.04       0.00
MACE_BM_ADDN_2_1_256_256_32_float_CPU                                5026605        200    3337.68       0.00
MACE_BM_ADDN_2_1_256_256_3_float_CPU                                  571553       1660    2751.91       0.00
MACE_BM_ADDN_2_1_512_512_3_float_CPU                                 1639558        584    3837.29       0.00
MACE_BM_ADDN_4_1_128_128_3_float_CPU                                  385243       2486    2041.39       0.00
MACE_BM_BATCH_NORM_1_1024_7_7_float_CPU                               333444       2684     601.91       0.15
MACE_BM_BATCH_NORM_1_128_256_256_float_CPU                          17322935         62    1936.99       0.48
MACE_BM_BATCH_NORM_1_128_56_56_float_CPU                              686025       1412    2340.49       0.59
....
....
MACE_BM_DEPTH_TO_SPACE_1_8_256_256_2_float_CPU                       2763646        359     758.84       0.00
MACE_BM_DEPTH_TO_SPACE_1_9_512_512_3_float_CPU                      12383405         79     762.08       0.00
F /data/Android/xiaomi/mace/mace/ops/dynamic_lstm.cc:172] Check failed: this->InputSize() >= max_input_num The first affine needs a bias input.
F /data/Android/xiaomi/mace/mace/ops/dynamic_lstm.cc:172] backtrace:
F /data/Android/xiaomi/mace/mace/ops/dynamic_lstm.cc:172]  pc 0x5980e8e174 
F /data/Android/xiaomi/mace/mace/ops/dynamic_lstm.cc:172]  pc 0x5980e9163c 
F /data/Android/xiaomi/mace/mace/ops/dynamic_lstm.cc:172]  pc 0x5980e915e8 
F /data/Android/xiaomi/mace/mace/ops/dynamic_lstm.cc:172]  pc 0x5980e918c4 
F /data/Android/xiaomi/mace/mace/ops/dynamic_lstm.cc:172]  pc 0x5980e919b8 
F /data/Android/xiaomi/mace/mace/ops/dynamic_lstm.cc:172]  pc 0x5980dc9f6c 
F /data/Android/xiaomi/mace/mace/ops/dynamic_lstm.cc:172]  pc 0x5980e69008 
F /data/Android/xiaomi/mace/mace/ops/dynamic_lstm.cc:172]  pc 0x5980db4840 
F /data/Android/xiaomi/mace/mace/ops/dynamic_lstm.cc:172]  pc 0x5980d971c0 
F /data/Android/xiaomi/mace/mace/ops/dynamic_lstm.cc:172]  pc 0x5980d969a8 
F /data/Android/xiaomi/mace/mace/ops/dynamic_lstm.cc:172]  pc 0x5980d77924 
F /data/Android/xiaomi/mace/mace/ops/dynamic_lstm.cc:172]  pc 0x5980d830f4 
F /data/Android/xiaomi/mace/mace/ops/dynamic_lstm.cc:172]  pc 0x778369e058 __libc_init
Aborted 

@lu229
Copy link
Collaborator

lu229 commented Aug 17, 2021

@leiwen83 Could you use the master branch? we now work on the master, thank you first

@leiwen83
Copy link
Author

@leiwen83 Could you use the master branch? we now work on the master, thank you first

master branch cannot even run. The first comment is tested over master branch...

@lu229
Copy link
Collaborator

lu229 commented Aug 31, 2021

@leiwen83 Sorry for the late reply, please use bazel command, for example:
python tools/bazel_adb_run.py --target="//test/ccbenchmark:mace_cc_benchmark" --run_target=True --target_abis=armeabi-v7a,arm64-v8a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants