收藏
回答

引入@tensorflow/tfjs-backend-wasm的时候各种报错?

VM3547 WAService.js:2 Error: module "miniprogram_npm/@tensorflow/tfjs-backend-wasm/path.js" is not defined

import {setWasmPath,setWasmPaths} from '@tensorflow/tfjs-backend-wasm';

const fetchWechat = require('fetch-wechat')

const tf = require('@tensorflow/tfjs-core');

const webgl = require('@tensorflow/tfjs-backend-webgl');

const plugin = require('./plugin/index.js');


引入方式如下,小程序各种报错,要么低版本的报setWasmPath undefined

3.0.0版本的又报miniprogram_npm/@tensorflow/tfjs-backend-wasm/path.js is not find

有人遇到过这种情况吗?求助


回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容
问题标签