请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

MnistData数据问题

6ced:47 Uncaught (in promise) TypeError: examples.print is not a function

请问下老师 这个examples对象调用print方法报错有什么解决办法吗?

图片描述

正在回答 回答被采纳积分+3

插入代码

1回答

lewis 2021-09-16 17:01:38

examples是tensor吗?还是clone示例代码来运行比较稳妥

0 回复 有任何疑惑可以回复我~
  • 提问者 慕无忌9698 #1
    看起来应该是tensor,labels: t
    dataId: {}
    dtype: "int32"
    id: 1
    isDisposed: (...)
    isDisposedInternal: false
    kept: false
    rank: (...)
    rankType: "2"
    shape: (2) [20, 10]
    size: 200
    strides: [10]
    [[Prototype]]: Object
    xs: t
    dataId: {}
    dtype: "float32"
    id: 0
    isDisposed: (...)
    isDisposedInternal: false
    kept: false
    rank: (...)
    rankType: "2"
    shape: (2) [20, 784]
    size: 15680
    strides: [784]
    [[Prototype]]: Object
    [[Prototype]]: Object
    回复 有任何疑惑可以回复我~ 2021-09-16 17:11:49
  • lewis 回复 提问者 慕无忌9698 #2
    如果是tensor不该报错,还是建议clone仓库运行
    回复 有任何疑惑可以回复我~ 2021-09-16 17:13:56
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信