Giter VIP home page Giter VIP logo

Comments (4)

MARMOTatZJU avatar MARMOTatZJU commented on August 12, 2024

https://github.com/nzc/dnn_ctr/blob/master/model/FNN.py
这个里面536行的这句with torch.cuda.device(2):中的2改成0试一下。

from dnn_ctr.

aa147138 avatar aa147138 commented on August 12, 2024

已经改过了,在Quadro K4200上跑就会出现这个错误,在Tesla P100上跑就没问题。是计算能力的问题还是显存大小的问题?

from dnn_ctr.

MARMOTatZJU avatar MARMOTatZJU commented on August 12, 2024

这样的话有可能是显卡驱动的情况,也有可能是pytorch需要重新安装。建议如果方便的话重新安装一下pytorch。

from dnn_ctr.

aa147138 avatar aa147138 commented on August 12, 2024

我有试过torch.cuda.is_available()这个操作,返回的事true,显卡驱动应该是没问题的吧?我的pytorch也是才装的,之前没用这个环境。用conda装的
另外,那个错误的定位是在这个地方
fm_first_order_emb_arr = [(torch.sum(emb(Xi[:,i,:]),1).t()*Xv[:,i]).t() for i, emb in enumerate(self.fm_first_order_embeddings)]

from dnn_ctr.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.