Git Product home page Git Product logo

Comments (4)

kopopt avatar kopopt commented on July 17, 2024

@daxiongshu That's weird. Actually I developed this software on machines without GPU card, and everything goes well. Moreover, the core operators I implemented in "cc/" folder is cpu version only. Could you please double-check the gpu usage actually comes from fast_tffm? It will be more helpful if you could identify which operators the gpu usage comes from. I will further investigate it. Thanks!

from fast_tffm.

kopopt avatar kopopt commented on July 17, 2024

@daxiongshu FYI, the tensorflow version I installed is "cpu only" version. I haven't run the code on the "gpu" version tensorflow yet. Is it possible that the "gpu" version tensorflow will consume some gpu no matter what mode is chosen?

from fast_tffm.

daxiongshu avatar daxiongshu commented on July 17, 2024

Thank you for the reply! Yeah, it seems CPU does all heavy lifting. The GPU process only uses 64 MB GPU memory. Previously i thought maybe that is due to the small batch size but when i increase batch size 10x the GPU process still uses 64MB. I installed the GPU version tensorflow and the code runs very well. Thank you!

I saw the nested loops in cc/fm_grad_op.cc so yeah it is CPU-like implementation. Do you happen to know where i can find some guides for implementing GPU ops? I'd like to contribute to this repo with a GPU version.

Thank you very much!

from fast_tffm.

kopopt avatar kopopt commented on July 17, 2024

Welcome to contribute :) There are numerous operator implementations in https://github.com/tensorflow/tensorflow/tree/master/tensorflow/core/kernels . You can check how they work.

However, when I print the timeline for each operators, it seems that currently the most time consuming operators is the parse operator; therefore, the gpu implementation might not bring any difference. You can verify that. Thanks.

from fast_tffm.

Related Issues (7)

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.