未验证 提交 c11b6a71 编写于 作者: C Chun-Wei Chen 提交者: GitHub

[1.14.1] Cherry pick: fix build for web assembly (#5495) (#5496)

Co-authored-by: NYulong Wang <7679871+fs-eire@users.noreply.github.com>
fix build for web assembly (#5495)
上级 e2525550
......@@ -184,7 +184,7 @@ void check_tensor(const TensorProto& tensor, const CheckerContext& ctx) {
}
std::string data_path = path_join(ctx.get_model_dir(), relative_path);
// use stat64 to check whether the file exists
#ifdef __APPLE__
#if defined(__APPLE__) || defined(__wasm__)
struct stat buffer; // APPLE does not have stat64
if (stat((data_path).c_str(), &buffer) != 0) {
#else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册