Giter Club home page Giter Club logo

Comments (3)

PatriceVignola avatar PatriceVignola commented on August 22, 2024

This is something we're working on. We didn't work on optimizing the memory allocator yet, so large batch sizes or big images that work on CUDA devices may not be supported on DML devices yet, depending on the device. This is also due to the fact that we don't have complete operator coverage yet, so copies between CPU/GPU happen more often than they should, therefore utilizing a lot of memory.

In your case, reducing the batch size when working with bigger images will probably let you run the model without errors.

from tensorflow-directml.

limapedro avatar limapedro commented on August 22, 2024

It seems to me that the Conv2D layer has some sort of memory allocation problem, I ran a Dense model with more than 100 million parameters without a problem, but even a 50 thousand params Conv2D model has memory issues, so my conclusion is that maybe some memory leak is happening.

from tensorflow-directml.

PatriceVignola avatar PatriceVignola commented on August 22, 2024

We just released tensorflow-directml 1.15.3.dev200911 with many improvements to the memory allocator. You can try it out and tell us how it goes!

Also, since we have now open-sourced our fork, new tensorflow-directml issues should be opened over here.

from tensorflow-directml.

Related Issues (20)

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.