Add tensorflow sample under samples/workload/tensorflow (#427)

This commit is contained in:
Wang Ning
2020-10-22 16:18:37 +08:00
committed by GitHub
parent 4787b150b8
commit c515fb1b75
9 changed files with 426 additions and 0 deletions

View File

@ -50,6 +50,9 @@ uint32
get_lib_pthread_export_apis(NativeSymbol **p_lib_pthread_apis);
#endif
uint32
get_libc_emcc_export_apis(NativeSymbol **p_libc_emcc_apis);
static bool
check_symbol_signature(const WASMType *type, const char *signature)
{
@ -386,6 +389,14 @@ wasm_native_init()
return false;
#endif
#if WASM_ENABLE_LIBC_EMCC != 0
n_native_symbols = get_libc_emcc_export_apis(&native_symbols);
if (n_native_symbols > 0
&& !wasm_native_register_natives("env",
native_symbols, n_native_symbols))
return false;
#endif /* WASM_ENABLE_LIBC_EMCC */
return true;
}