Skip to content

soumith/torch-ios

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Torch7 Library for iOS

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.

This package has been modified (or just hacked) to fully compile Torch7 for iOS (iPad/iPhone) for all architectures (armv7, armv7a, arm64, i386 (simulator), x86_64 (simulator))

Requirements

Torch7 needs to be installed prior to building the iOS version. 'torch' needs to be available in the user's path.

Installation

Simply run: $ ./generate_ios_framework

This will build all torch's libraries as static libs, and export them in a single dir: framework/. The dir is ready to be included in an iOS project: it includes an example class to load Torch from within your Objective C project.

Running

In your XCode/iOS code (Objective C), simply import the class Torch.m/.h; include all the libs to the linker; and finally add all the Lua files as resources. All you have left to do is to define a main.lua file to keep going...

About

Torch7 for iOS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 59.5%
  • HTML 19.9%
  • Lua 12.2%
  • CMake 4.6%
  • CSS 1.1%
  • Makefile 0.7%
  • Other 2.0%