wechat-miniprogram / miniprogram-demo

微信小程序组件 / API / 云开发示例
https://developers.weixin.qq.com/miniprogram/dev/index.html
MIT License
6.54k stars 2.11k forks source link

wx.createInferenceSession 创建失败返回2004010错误码的原因? #138

Open shenhongkai opened 2 months ago

shenhongkai commented 2 months ago

在使用wx.createInferenceSession 创建Session的时候,同样的代码在红米和荣耀手机可以正常创建,在小米手机上创建失败,返回错误信息是: {errno: 2004010, errMsg: "createInferenceSession:fail:environment not ready"}

小米手机型号和微信版本信息如下图: 截图