Giter Site home page Giter Site logo

Error on Neural Turing Machine Demo about cgt HOT 5 CLOSED

joschu avatar joschu commented on August 19, 2024
Error on Neural Turing Machine Demo

from cgt.

Comments (5)

sbos avatar sbos commented on August 19, 2024

I have the same problem running this demo and sometimes with my code.
It's strange that in my code I can overcome this by disabling simplifications.

Meanwhile, 7 tests fail with the same error.

from cgt.

jramapuram avatar jramapuram commented on August 19, 2024

What did you use for your CUDA build settings? I enabled CUDA & CUDNN and am running v7 of CUDA

from cgt.

sbos avatar sbos commented on August 19, 2024

I don't use CUDA at all and I'm not sure that this error is related to it.
I tried to debug my code which fails with the same error and find what causes it.

def py_numeric_apply(node, vals):
...
        #vals is np.array with dtype=float32
        out = alloc_output(node,vals)
        #out is np.array with dtype=int64 because node.typ.dtype is so
        callable.call(vals, out) 
        # this causes the error since np.ceil always returns floats (even if the input is integer)
        # which cannot be written to int64 array

If got it right according to UNARY_INFO the iceil operation should cast it's result to integer somehow, but it doesn't.

from cgt.

sbos avatar sbos commented on August 19, 2024

Changing

def _nu_iceil(x,out=None):
    if out is None:
        return np.ceil(x)
    else:
        np.ceil(x, out)

to

def _nu_iceil(x,out=None):
    if out is None:
        return np.ceil(x)
    else:
        out[...] = np.ceil(x)

helps me and allows to run the demo. My code however fails with the following error:

Python(87053,0x7fff71141000) malloc: *** mach_vm_map(size=140458053210112) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
Segmentation fault: 11

from cgt.

jramapuram avatar jramapuram commented on August 19, 2024

This is now fixed with the commit from @sbos [ #46 ]

from cgt.

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.