Need help with torch-ios?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

clementfarabet
198 Stars 41 Forks Other 1.0K Commits 17 Opened issues

Description

Torch7 for iOS.

Services available

!
?

Need anything else?

Contributors list

# 6,082
Lua
torch7
pytorch
end-to-...
354 commits
# 51,306
C
Lua
Jupyter...
torch
250 commits
# 49,803
Lua
C
Shell
Jupyter...
197 commits
# 1,023
Lua
C++
pytorch
tensor
18 commits
# 627,107
CSS
Shell
JavaScr...
10 commits
# 160,234
Python
HTML
Shell
nltk
3 commits
# 769,978
CSS
Shell
JavaScr...
3 commits
# 438,514
Lua
Shell
JavaScr...
2 commits
# 173,845
React
Shell
iOS
Mobile
1 commit
# 758,573
CSS
Shell
JavaScr...
1 commit
# 227,917
Lua
Shell
JavaScr...
1 commit

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.

I recommend doing the easy install if you have not installed Torch7. http://torch.ch/docs/getting-started.html

Building The Framework

Simply run: $ ./generateiosframework

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.

For examples full examples that utilize this class (Torch.m) please see the ios_examples/ folder. More examples to come soon.

Running

When creating your Objective-C project simply import the class Torch.m/.h; include all the libs to the linker; add Torch.framework & Accelrate.framework and add all the Lua files as resources. define YOURFILE.lua and add it as a resource. Run YOURFILE.lua using the method defined in Torch.h/.m

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.