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)
- filtering out -mcpu=native when building with Bazel on Arm 64-bit (aarch64) HOT 2
- Help Wanted: How to use SIMD to accelerate Exponential function on CPU.
- Can RVV Kernels be enable by default? HOT 1
- Dynamic Shape Support HOT 4
- Build error when including XNNPACK using FetchContent HOT 4
- Help needed: any doc available.
- experiments-config.h is hiding the xnnpack.h header
- GELU support in XNNPACK HOT 4
- Need help: bench the 'sdpa' operator HOT 1
- Concatenate and Split don't support input that has 0 size dimension HOT 4
- Vector extension errors while building on RISC-V HOT 2
- Avoid undefined behavior in memcpy call in `xnn_define_static_reshape`
- Clamp on empty ranges should be valid HOT 2
- f32-raddstoreexpminusmax-rvv-rr2-p6-u4v.c error: no member named 'rvv_rr2_p6' in 'union xnn_f32_expminus_params' HOT 1
- Request for Legacy CPU Support or Improved Error Handling HOT 2
- [QD8_F32_QC4W] Issue with odd number of input_channels HOT 3
- XNNPACK make error scc1: error: invalid feature modifier 'i8mm' in '-march=armv8.2-a+i8mm+fp16' HOT 2
- Fallthroughs should be explicit HOT 1
- XNNPACK on LicheePi Console 4A HOT 2
- XNN_FLAG_KEEP_DIM not backwards compatible 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.