Coder Social home page Coder Social logo

tensorflow.python.framework.errors_impl.InvalidArgumentError: No OpKernel was registered to support Op 'MaxBytesInUse' used by node GPUMemoryTracker/MaxBytesInUse about attentionocr HOT 6 OPEN

zhang0jhon avatar zhang0jhon commented on August 23, 2024
tensorflow.python.framework.errors_impl.InvalidArgumentError: No OpKernel was registered to support Op 'MaxBytesInUse' used by node GPUMemoryTracker/MaxBytesInUse

from attentionocr.

Comments (6)

zhang0jhon avatar zhang0jhon commented on August 23, 2024

程序调用GPU了么?

from attentionocr.

wyc2015fq avatar wyc2015fq commented on August 23, 2024

@zhang0jhon 我按照你的设置跑的,测试是正常的,训练就出现这个问题

from attentionocr.

zhang0jhon avatar zhang0jhon commented on August 23, 2024

config.py 里的GPU设置改了么?

from attentionocr.

wyc2015fq avatar wyc2015fq commented on August 23, 2024

@zhang0jhon 我的卡是P4的,有四个显卡。设置成gpus = [0, 1, 2, 3],请问cuda 必须是10的吗?

from attentionocr.

zhang0jhon avatar zhang0jhon commented on August 23, 2024

可以尝试把train.py里面的GPUMemoryTracker()等Tracker的callbacks注释掉,我默认使用的是CUDA10 CUDNN7

from attentionocr.

deeplearningshare avatar deeplearningshare commented on August 23, 2024

@zhang0jhon 我的卡是P4的,有四个显卡。设置成gpus = [0, 1, 2, 3],请问cuda 必须是10的吗?
cuda9也可以,但是需要将tensorflow版本降低,同时更改对应的一些接口就可以了,我用的是tensorflow 1.8.0,cuda9
接口更改比如:
with tf.compat.v1.variable_scope(name, reuse=reuse) as scope:
改成:
with tf.variable_scope(name, reuse=reuse) as scope:
类似这些
其中model.py中的
h = tf.nn.dropout(h, rate = 1-keep_prob)
c = tf.nn.dropout(c, rate = 1-keep_prob)
改成
h = tf.nn.dropout(h, keep_prob = keep_prob)
c = tf.nn.dropout(c, keep_prob = keep_prob)

from attentionocr.

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.