google-deepmind / torch-randomkit

Provides and wraps the Randomkit library, copied from Numpy.
BSD 3-Clause "New" or "Revised" License
34 stars 25 forks source link

Avoided a warning about reading an undefined var. #42

Closed fidlej closed 10 years ago

fidlej commented 10 years ago

With the proposed change, it will be possible to require util.warn before randomkit.

jucor commented 10 years ago

Thanks Ivo! By the way, I'm not super happy to have relied on a global table like this, but I couldn't find a better way to pass information from file to file while keeping the require simple (i.e. other than having each file return a function that should then be called by the requirer). Suggestions welcome!