Comments (6)
This is expected. CMake build for Emscripten is currently not supported, you need to use Bazel for WebAssembly and WebAssembly SIMD targets.
from xnnpack.
I want to build these files from lite cmakelists.txt which are xnnpack_delegate.h/cc
if(TFLITE_ENABLE_XNNPACK)
find_package(xnnpack REQUIRED)
populate_tflite_source_vars("delegates/xnnpack"
TFLITE_DELEGATES_XNNPACK_SRCS
FILTER ".*(_test|_tester)\\.(cc|h)"
)
list(APPEND TFLITE_TARGET_DEPENDENCIES
XNNPACK
)
list(APPEND TFLITE_TARGET_PUBLIC_OPTIONS "-DTFLITE_BUILD_WITH_XNNPACK_DELEGATE")
endif()
If I use bazel for xxnpack then should I be able to get libxnnpack.a(I dont want js/wasm)
Then I would need to link xnnpack_delegate.o with libxnnpack.a .
from xnnpack.
I m forcing the xnnpack_delegate.cc commenting on find_package(xnnpack)
its failing on "fp16.h' file not found". I see that this is half float library. Is this supported like numpy(not at cpu/compiler level)
If I am able to build xnnpack_delegate.o then I can use emcc to link it with libxnnpack.a(from bazel) ??
from xnnpack.
I dont understand bazel so How I can build the bazel for webassembly or WebAssembly simd. The config is not defined in .rc file.
bazel build -c opt --config emscripten_wasm : wasm_ukernels
bazel build -c opt --config emscripten_wasmsimd: wasm_ukernels
Added this to rc file
build:emscripten_wasm --crosstool_top=//toolchain:emscripten --cpu=wasm
could you please point to the tool chain http archive?
from xnnpack.
Bazel doesn't support building for WebAssembly out of the box. You'd need a custom toolchain specifications to enable this use case. You may the Bazel toolchain specification from TensorFlow.js which was tested to work with XNNPACK.
from xnnpack.
@dhirajnitk have you resolved the issue?
I want to build libxnnpack.a using emscripten, so that I can link this with libtensorflowlite.a
could you please post the procedure here?
from xnnpack.
Related Issues (20)
- Fallthroughs should be explicit HOT 1
- XNNPACK on LicheePi Console 4A HOT 2
- XNN_FLAG_KEEP_DIM not backwards compatible HOT 1
- When running `build -c opt --config android_arm64 :end2end_bench` under bench, `sys/system_properties.h` is missing HOT 2
- Build Android arm-v7 faild HOT 3
- Xnnpack still builds with `+dotprod` and `+fp16` with `-DXNNPACK_ENABLE_ARM_DOTPROD=OFF -DXNNPACK_ENABLE_ARM_FP16_SCALAR=OFF -DXNNPACK_ENABLE_ARM_FP16_VECTOR=OFF` HOT 10
- Is running TEST(CONVERT_NC_F16_QD8, unit_batch) failed because it does not support armv7a ? HOT 1
- Why is Signal 7 reporting an error on the armv7a platform TEST (F16_VCMUL_NEONFP16ARITH_U8, batch_lt_8) ? HOT 3
- A segment error occurred while running test case static-reshape-test on the armv7a platform HOT 1
- ARMv7 (with NEON) can not support on Linux but only support ARMv7 (with NEON) on Android HOT 3
- Enable HEXAGON to build XNNPack
- Work with the gvisor team on this
- scripts/build-android-armv7.sh fails with NDK 21
- `xnn_weights_cache_provider` look_up doesn't work? HOT 2
- How can I parallelize the execution of this benchmark? (https://github.com/google/XNNPACK/blob/master/bench/spmm-benchmark.h)
- cmake build failure with XNNPACK_BUILD_TESTS=ON and XNNPACK_LIBRARY_TYPE=shared
- test/sigmoid_nc_test fails on Hexagon simulator HOT 1
- Load-from-misaligned-address failures on Hexagon simulator HOT 3
- XNNPACK tests that use mmap() fail on Hexagon devices
- Default condition missing for xnnpack_aggregate_library HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xnnpack.