为了账号安全,请及时绑定邮箱和手机立即绑定

Cannot read property 'apply' of undefined

http://img1.sycdn.imooc.com//617f9f0100014f1e16280941.jpg

(node:12552) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'apply' of undefined

    at Sequential.add (D:\yxy\garbage-classification system\node_modules\@tensorflow\tfjs-layers\dist\tf-layers.node.js:20292:38)

    at defineModel (D:\yxy\garbage-classification system\train\index.js:33:11)

    at runMicrotasks (<anonymous>)

    at processTicksAndRejections (internal/process/task_queues.js:95:5)

    at async main (D:\yxy\garbage-classification system\train\index.js:87:17)

(Use `node --trace-warnings ...` to show where the warning was created)

(node:12552) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)

(node:12552) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

PS D:\yxy\garbage-classification system> ^C

PS D:\yxy\garbage-classification system>


这是什么报错啊


正在回答

举报

0/150
提交
取消
Tensorflow.js 实现垃圾分类
  • 参与学习       3908    人
  • 解答问题       16    个

应用Tensorflow.js,3小时带你搞定一个垃圾分类 App。

进入课程

Cannot read property 'apply' of undefined

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信