tfjs-wechat icon indicating copy to clipboard operation
tfjs-wechat copied to clipboard

can't use tfjs-backend-wasm 2.0.0

Open geshu opened this issue 4 years ago • 7 comments

TensorFlow.js 2.0.0 tfjs-wechat plugin 0.10 WeChat 7.0.13 WeChat base API 2.11.3 WeChat IDE stable 1.03.2006090 尝试使用tfjs-backend-wasm时报错: image 我们点这个问题进去发现在@tensorflow/tfjs-backend-wasm/index.js里是这样写的: image 这样的写法会导致cast变量undefined,所以tfjs-backend-wasm 2.0.0是不能使用(或者是不能直接使用)。那么我想问问什么时候可以支持2.0.1或者发布一下修改的2.0.0,亦或者我们是否可以使用1.x版本的 tfjs-backend-wasm

geshu avatar Jul 02 '20 02:07 geshu

@geshu Sorry for the problem, this should be fixed in next release.

pyu10055 avatar Jul 02 '20 16:07 pyu10055

@pyu10055 ok, i see, looking forward to your next release.

geshu avatar Jul 03 '20 01:07 geshu

@pyu10055 ok, i see, looking forward to your next release.

朋友,加个联系讨论下吗,你的webgl冲突还有这个wasm安装的问题我也碰到了(我的名字就是我的QQ号

1161735054 avatar Aug 24 '20 12:08 1161735054

我也遇到了这个问题 ,这个修复了吗

YouSmart2016 avatar Oct 07 '20 04:10 YouSmart2016

修复了吗?

BingXiong1995 avatar Oct 21 '20 11:10 BingXiong1995

引入import '@tensorflow/tfjs-backend-wasm'; import {setWasmPath,setWasmPaths} from '@tensorflow/tfjs-backend-wasm'; 打印setWasmPath或者setWasmPaths都为空,试了很多微信版本 可以告知需要怎么引入吗?

Fujitomy avatar Mar 20 '21 10:03 Fujitomy

补充此问题,因为新版本微信已经不支持WebAssembly,并且不再支持远程wasm文件,所以wasm后端已经完全不能正常在这个环境下使用了,最新版本的后端虽然支持了WXWebAssembly,但是并没有完全修复,有个大佬提供的修复包也没能随版本发布。https://github.com/deepkolos/tfjs-wxmp-wasm-test

EVA09 avatar Aug 29 '22 07:08 EVA09