Cannot read property 'apply' of undefined

来源:-

慕函数1189435

2021-11-01 16:02

http://img1.mukewang.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回答

还没有人回答问题,可以看看其他问题

Tensorflow.js 实现垃圾分类

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

3908 学习 · 16 问题

查看课程