Code Monkey home page Code Monkey logo

windowstorch's Introduction

Torch for Windows

This repository contains Windows binary builds of the Torch machine learning framework.

See the releases page or branches for 64-bit and 32-bit versions.

For more information, see https://github.com/torch/torch7/wiki/Windows and torch/torch7#287. The process for producing these builds is documented here: https://github.com/torch/torch7/wiki/Windows#using-visual-studio-manually. The git logs contain the actual build commands and repository versions that were used.

Preinstalled packages

Preinstalled packages: cwrap, dok, fun, gnuplot, image, inspect, luaffi, luafilesystem, moses, nn, nnx, optim, paths, penlight, strict, sundown, sys, torch, xlua

The torch and nn packages are built from pinned versions (commit 7bbe179 on Sep 6, 2016, and commit 1b95f7e on Feb 21, 2017, respectively). Unfortunately, more recent versions do not compile on Windows when following the aforementioned build process.

Everything else is built from the most recent versions that were available when building (the build date is mentioned in the release titles).

Installing and running

  1. Choose a branch that contains the desired build configuration
  2. Download or clone the branch to C:\torch
  3. In a command prompt:
    1. C:\torch\setpaths.cmd
    2. luajit

If you wish to place the binaries somewhere else than C:\torch, then you need to modify the path configuration in several files (grep for 'C:[\\/]torch'). If you do not plan to use luarocks for installing additional packages, then simply modifying the paths in setpaths.cmd is enough. Torch itself works through symlinks and junctions, too, but luarocks doesn't.

If you want to plot from Torch using Gnuplot, then you need to have Gnuplot installed on your system and the bin directory of the installation in your PATH.

Local and remote debugging with ZeroBrane Studio should work for both 64-bit and 32-bit applications (see the torch7 wiki link above for details).

Notes

The lua51.dll file in the bin directory is simply a copy of libluajit.dll; this is needed for local debugging with ZeroBrane Studio.

windowstorch's People

Contributors

hiili 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

windowstorch's Issues

Can't figure out how to use.

Usually in ubuntu i just use "th train.lua -input_h5 voice.h5 -input_json voice.json -num_layers 3 -rnn_size 680 -wordvec_size 110 -gpu -1"

but that doesn't work in this windows i get this
"stdin:2: '=' expected near 'h'"

Torch not found

downloaded 64 bits version, ran paths, then ran

luajit, I get some console that says th> but when I try to run torch.Tensor{1,2,3} it says attempt to call global torch. Any ideas :/.

torch

earlier with a totally different branch of torch for windows it couldnt load torch.dll into lua.

csvigo build error

I am trying to install csvigo. I have used:
luarocks install csvigo

But I get the error:
libcsvigo.dll : fatal error LNK1120: 12 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files\CMake\bin\cmake.exe"' : return code '0xffffffff' Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\bin\HostX86\x86\nmake.exe"' : return code '0x2' Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\bin\HostX86\x86\nmake.exe"' : return code '0x2' Stop.
Error: Build error: Failed building.

Full output here:
https://pastebin.com/AVQmwxWc

I had a similar error when trying to install nn, but fixed it using the steps here:
https://github.com/torch/torch7/wiki/Windows#the-nn-package

How can I fix this?

How to install rocks by luarocks

Dear Sir,

Hello! Thank you for your great work helping me installing Torch on Windows.
I have installed it in C:\torch. But when I tried to intall cutorch using "luarocks intall cutorch", it failed, like below (I have intalled cmake.exe on my computer, but I could see it's still a cmake problem...) :
"
C:\torch\bin>luarocks install cutorch
Installing https://raw.githubusercontent.com/torch/rocks/master/cutorch-scm-1.rockspec...
Using https://raw.githubusercontent.com/torch/rocks/master/cutorch-scm-1.rockspec... switching to 'build' mode
Cloning into 'cutorch'...
remote: Enumerating objects: 229, done.
remote: Counting objects: 100% (229/229), done.
remote: Compressing objects: 100% (184/184), done.
Receiving objects: 100% (229/229), 172.00 KiB | 3), pack-reused 0 eceiving objects: 99% (227/229), 172.00 KiB | 237.00 KiB/s
Receiving objects: 100% (229/229), 241.83 KiB | 211.00 KiB/s, done.
Resolving deltas: 100% (62/62), done.
cmake -E make_directory build && cd build && cmake .. -DLUALIB=libluajit.lib -DLUA_INCDIR=C:/torch/include -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="C:/torch/bin/.." -DCMAKE_INSTALL_PREFIX="C:/torch/luarocks/cutorch/scm-1" && nmake install

C:\Users\LUCAST~1\AppData\Local\Temp\luarocks_cutorch-scm-1-7706\cutorch>if -E == -E (cmake.exe -E make_directory build ) else (cmake.exe -G "NMake Makefiles" -DCMAKE_LINK_FLAGS:implib=libluajit.lib -DLUALIB=libluajit -E make_directory build )

C:\Users\LUCAST~1\AppData\Local\Temp\luarocks_cutorch-scm-1-7706\cutorch\build>if .. == -E (cmake.exe .. -DLUALIB=libluajit.lib -DLUA_INCDIR=C:/torch/include -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="C:/torch/bin/.." -DCMAKE_INSTALL_PREFIX="C:/torch/luarocks/cutorch/scm-1" ) else (cmake.exe -G "NMake Makefiles" -DCMAKE_LINK_FLAGS:implib=libluajit.lib -DLUALIB=libluajit .. -DLUALIB=libluajit.lib -DLUA_INCDIR=C:/torch/include -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="C:/torch/bin/.." -DCMAKE_INSTALL_PREFIX="C:/torch/luarocks/cutorch/scm-1" )
CMake Warning (dev) in CMakeLists.txt:
No project() command is present. The top-level CMakeLists.txt file must
contain a literal, direct call to the project() command. Add a line of
code such as

project(ProjectName)

near the top of the file, but after cmake_minimum_required().

CMake is pretending there is a "project(Project)" command on the first
line.
This warning is for project developers. Use -Wno-dev to suppress it.

-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error in CMakeLists.txt:
The CMAKE_C_COMPILER:

cl

is not a full path and was not found in the PATH.

To use the NMake generator with Visual C++, cmake must be run from a shell
that can use the compiler cl from the command line. This environment is
unable to invoke the cl compiler. To fix this problem, run cmake from the
Visual Studio Command Prompt (vcvarsall.bat).

Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.

CMake Error in CMakeLists.txt:
The CMAKE_CXX_COMPILER:

cl

is not a full path and was not found in the PATH.

To use the NMake generator with Visual C++, cmake must be run from a shell
that can use the compiler cl from the command line. This environment is
unable to invoke the cl compiler. To fix this problem, run cmake from the
Visual Studio Command Prompt (vcvarsall.bat).

Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.

-- Configuring incomplete, errors occurred!
See also "C:/Users/LucasTsubasaYang/AppData/Local/Temp/luarocks_cutorch-scm-1-7706/cutorch/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/LucasTsubasaYang/AppData/Local/Temp/luarocks_cutorch-scm-1-7706/cutorch/build/CMakeFiles/CMakeError.log".

Error: Build error: Failed building.
"
Looking forward to hearing from you.

Thank you.

Problem in instalation VCRUNTIME140.dll

When I run luajit I get an error saying "VCRUNTIME140.dll is missing from your computer".
I followed the instructions on this page:
https://answers.microsoft.com/en-us/windows/forum/windows_10-hardware/vcruntime140dll-missing/2b061a41-e9f6-48f7-abee-28193cd3b60e
and downloaded this Visual C++ Redistributable Package
http://download.microsoft.com/download/0/5/6/056dcda9-d667-4e27-8001-8a0c6971d6b1/vcredist_x64.exe
However, installing this doesn't seem to resolve the issue. I am still getting the same error.
Will appreciate any help.
I am new to windows and visual studio. Thanks for this version of Torch

nngraph?

It would be cool to add this module.

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.