Giter VIP home page Giter VIP logo

rocks's Introduction

THIS REPOSITORY IS DEPRECEATED.

Please use https://github.com/torch/torch7

For install scripts, please look at: https://github.com/torch/ezinstall

Torch7 Library.

Torch7 provides a Matlab-like environment for state-of-the-art machine learning algorithms. It is easy to use and provides a very efficient implementation, thanks to an easy and fast scripting language (Lua) and a underlying C implementation.

In order to install Torch7 you can follow these simple instructions, but we suggest reading the detailed manual at http://www.torch.ch/manual/install/index

Requirements

  • C/C++ compiler
  • cmake
  • gnuplot
  • git

Optional

  • Readline
  • QT (QT4.8 is now supported)
  • CBLAS
  • LAPACK

Installation

$ git clone git://github.com/andresy/torch.git
$ cd torch
$ mkdir build
$ cd build

$ cmake .. 
OR
$ cmake .. -DCMAKE_INSTALL_PREFIX=/my/install/path

$make install

Running

$torch
Type help() for more info
Torch 7.0  Copyright (C) 2001-2011 Idiap, NEC Labs, NYU
Lua 5.1  Copyright (C) 1994-2008 Lua.org, PUC-Rio
t7> 

3rd Party Packages

Torch7 comes with a package manager based on Luarocks. With it it's easy to install new packages:

$ torch-rocks install image
$ torch-rocks list
$ torch-rocks search --all

Documentation

The full documentation is installed in /my/install/path/share/torch/html/index.html

Also, http://www.torch.ch/manual/index points to the latest documentation of Torch7.

rocks's People

Contributors

akfidjeland avatar andresy avatar atcold avatar cdluminate avatar clementfarabet avatar colesbury avatar d11 avatar dfarmer avatar diz-vara avatar ebetica avatar georgostrovski avatar howard0su avatar hughperkins avatar iamalbert avatar jgehring avatar jhjin avatar jucor avatar kaixhin avatar koraykv avatar korymath avatar lvdmaaten avatar mvitez avatar mwydmuch avatar nhynes avatar nicholas-leonard avatar ocallaco avatar punchagan avatar sergomezcol avatar soumith avatar szagoruyko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rocks's Issues

cutorch rockspec

Hi all,

I am installing Cutorch from rockspec: here is what I have found:

Scanning dependencies of target THC
make[2]: *** No rule to make target /share/apps/lib/librt.so', needed bylib/THC/libTHC.so'. Stop.
make[2]: *** Waiting for unfinished jobs....
[ 67%] Building C object lib/THC/CMakeFiles/THC.dir/THCTensorCopy.c.o
[ 67%] Building C object lib/THC/CMakeFiles/THC.dir/THCAllocator.c.o
[ 70%] Building C object lib/THC/CMakeFiles/THC.dir/THCStorageCopy.c.o
[ 72%] Building C object lib/THC/CMakeFiles/THC.dir/THCGeneral.c.o
[ 75%] Building C object lib/THC/CMakeFiles/THC.dir/THCTensor.c.o
[ 77%] Building C object lib/THC/CMakeFiles/THC.dir/THCStorage.c.o
make[1]: *** [lib/THC/CMakeFiles/THC.dir/all] Error 2
make: *** [all] Error 2

Error: Build error: Failed building.

Please let me know. Thanks!

Cheers,
Zhong

can't make-manifest

Hi, I get the following error when trying to make the manifest:

nicholas14@hermes:~/projects/rocks$ ./make-manifest.lua 
Already up-to-date.

Error: LuaRocks 2.1.0 bug (please report at [email protected]).
/usr/local/share/lua/5.1/luarocks/command_line.lua:156: attempt to call field 'run' (a nil value)
stack traceback:
    /usr/local/share/lua/5.1/luarocks/command_line.lua:156: in function </usr/local/share/lua/5.1/luarocks/command_line.lua:156>
    [C]: in function 'xpcall'
    /usr/local/share/lua/5.1/luarocks/command_line.lua:156: in function 'run_command'
    ./make-manifest.lua:12: in main chunk
    [C]: at 0x00404f9c

I tried to reinstall luarocks with

curl -sk https://raw.githubusercontent.com/torch/ezinstall/master/install-deps | bash

Not sure it that makes sense. But the luarocks version stays the same.

Luarocks server down

Gents, the luarocks server is down, and has been for 24h at least.

�Would you guys be ok to have our own mirror hosted on github or something? It's really unacceptable.

luarocks install cutorch

jishan@jishan-B85M-HD3:~/torch$ luarocks install cutorch
Warning: Failed searching manifest: Failed fetching manifest for https://raw.githubusercontent.com/torch/rocks/master - Failed downloading https://raw.githubusercontent.com/torch/rocks/master/manifest - /home/jishan/.cache/luarocks/https___raw.githubusercontent.com_torch_rocks_master/manifest
Warning: Failed searching manifest: Failed fetching manifest for https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master - Failed downloading https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/manifest - /home/jishan/.cache/luarocks/https___raw.githubusercontent.com_rocks-moonscript-org_moonrocks-mirror_master/manifest
I already install torch in ubuntu. How can i fix this problem..?please help

New torch-scm rock hides torch-7 rock thus breaking new local installations

Hi guys

The new torch-scm rock has higher priority in torch-rocks than the fake torch-7 rock. This breaks new local installation of new packages, since they require torch-7, and instead find (and try to install) torch-scm.
e.g.

  1. install torch globally, and make sure you do not have the fake torch7 already installed locally
  2. torch-rocks install --local whatever_package_that_requires_torch7

Is it possible to rename the file torch-scm so that it gets lower priority than torch-7, please ? At least until the whole new packaging is completely operational and official.

"luarocks install sundown" doesn't work

Hi,
Apologies in case this is not the right place for this question.
I am trying to install sundown using luarocks by using:

/usr/local/bin/luarocks install sundown

while logged in as root.
This fails with following message:

Installing https://raw.github.com/torch/rocks/master/sundown-scm-1.rockspec...
Using https://raw.github.com/torch/rocks/master/sundown-scm-1.rockspec... switching to 'build' mode
Cloning into 'sundown-ffi'...
fatal: unable to connect to github.com:
github.com[0: 192.30.252.130]: errno=Connection refused
Error: Failed cloning git repository.

I suspect that this is because git:// port is blocked for me, and I use https:// port while git cloning. But I don't know how to force luarocks to use https:// port instead of git://

Because of this issue, the 2-line torch installation command from "http://torch.ch/" does not work for me, since it uses luarocks.
Can someone please tell me how to overcome this issue?

Thanks!

Using CMake to build the rocks

CMake is already used by many rocks to generate the Makefile.
I want to modify the rockspec files to also build and install the code via cmake as opposed to make.
CMake already knows how to properly invoke the chosen make program and we should use this ability to improve the cross-platform, compatibility. For example, on Windows with Visual Studio installed, CMake generates msbuild projects by default. luarocks then tries to build them using nmake and fails. CMake on the other hand should handle all builds properly.

What I propose:
In all .rockspec files I want to replace
$(MAKE) => cmake --build . --config release
$(MAKE) install => cmake --build . --config release --target install

What's the best way for me to handle this? Should I go to each rock's repository and submit PR for the .rockspec?

how to install torch-rocks

Trying to install the mnist dataset (https://github.com/andresy/mnist). I need to run

$ torch-rocks install [somescript]

I have already installed Torch on Linux. However I get the error that the command 'torch-rocks' could not be found. I tried to search for a file which contains the string 'torch-rocks' on the disc but the OS did not find such a file. My question is:
how do I install torch-rocks ?

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.