Skip to content
This repository was archived by the owner on Jun 11, 2026. It is now read-only.
This repository was archived by the owner on Jun 11, 2026. It is now read-only.

关于TypeError的问题 #16

Open
Open

Description

@assassinjjx

image

我们按照readme中的步骤安排好文件结构后开始训练,一段时间后查看进程就出现了这个typrerror的问题,希望有人可以提点一二。

Activity

  1. berton820 commented on Jul 28, 2019

    @berton820

    pytorch 降级到指定版本就好了,或者你在之前定义下np的dtype

  2. assassinjjx commented on Aug 7, 2019

    @assassinjjx
    Author
  3. chenzhengdeeplearning commented on Oct 5, 2020

    @chenzhengdeeplearning

    请问最后是怎么解决的呢?我试了很多方法都没有成功.我试图打印出来targets,发现其中除了tensor还有整型数字,不知道是不是因为这个数字才报的此错误.如果方便的话,能麻烦您把改后的代码发一下吗?十分感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions