• kaikai

    请问为什么我输入88页的y.grad_fn.s**ed_variables提示:
    pytorch ‘MulBackward1’ object has no attribute ‘s**ed_variables’
    求解决。pytorch是0.3.1版本的

    kaikai发表于 2018/11/23 9:27:18
    • kaikai

      **号那里是‘a’和‘v,和谐掉了

      kaikai发表于 2018/11/23 9:30:49
  • ceo7820520

    123页最上面一段代码中x = self.submodel11(x)应该为x = self.submodel1(x)

    ceo7820520发表于 2018/10/16 11:21:55
  • wakerrrr

    3.12里71页,关于共享内存那里有重大错误,书里是b和c数据类型一样,所以只有b和c共享内存。

    wakerrrr发表于 2018/9/14 10:17:00
  • wumenglin8263

    3.1.5小试牛刀的github例子中
    RuntimeError Traceback (most recent call last)

    <ipython-input-38-62c16de32be5> in <module>()
    30 x = t.arange(0, 20).view(-1, 1)
    31 print(x.size(),w.size())
    —-> 32 y = x.mm(w) + b.expand_as(x)
    33 plt.plot(x.numpy(), y.numpy()) # predicted
    34

    RuntimeError: Expected object of type torch.LongTensor but found type torch.FloatTensor for argument #2 ‘mat2’

    不知道是怎么回事?

    wumenglin8263发表于 2018/8/7 10:09:09
    • 张墨一

      在 x= t.arange(0,20).view(-1,1)语句后面加上x = x.float()语句改变一下x的类型。

      张墨一发表于 2018/10/31 13:25:42
  • Loras

    P40写out=net(input)这一句时报错notimplementederror

    Loras发表于 2018/5/3 9:32:42
    • 叫啥忘了

      我也遇到了这个问题,请问你解决了吗

      叫啥忘了发表于 2018/5/10 13:41:36
    • 陶宝大人

      @叫啥忘了 提示维度不一样,output是1×10 ,target是10
      所以只要将target reshape就可以了
      target = target.reshape((1,10))

      陶宝大人发表于 2018/6/22 15:17:39
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6