Code Monkey home page Code Monkey logo

Comments (5)

dougalm avatar dougalm commented on July 24, 2024

Both x[:, None] and x[:, np.newaxis] are valid ways to expand dimensions and autograd has always supported them. I can't reproduce the segfault on my machine. What versions of numpy and scipy are you using?

from autograd.

kswersky avatar kswersky commented on July 24, 2024

Numpy 1.8.0 and Scipy 0.13. Looks like I should upgrade!

from autograd.

mattjj avatar mattjj commented on July 24, 2024

The segfault happens on numpy 1.8.0, 1.8.1, and 1.8.2, but not 1.9.0. Maybe autograd should require numpy>=1.9 (or we could find the bug and work around it).

from autograd.

mattjj avatar mattjj commented on July 24, 2024

Oh, numpy's setup.py does require >=1.9 already.

from autograd.

mattjj avatar mattjj commented on July 24, 2024

Btw, the segfault happens in np.add.at in primitive_sum_arrays when called with these arguments:

ipdb> print new_array
[ 0.  0.  0.  0.  0.]
ipdb> print array.idx
(slice(None, None, None), None)
ipdb> print array.val
[[ 1.]
 [ 1.]
 [ 1.]
 [ 1.]
 [ 1.]]

from autograd.

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.