Atcold/torch-Developer-Guide

Some advanced tricks with Torch7 explained easily

Lua

95

30 commits

updated Sep 18, 2016

See the code

README

Torch Developer Guide

Join the chat at https://gitter.im/Atcold/Torch-Developer-Guide

This repository tries to provide some advanced tricks with Torch7 explained easily

FFI series

LuaJIT FFI library provides an incredible easy way to call external C functions and use C data structures from pure Lua code. The FFI series will provide several working examples of playing with C from within Torch, taking for granted no prior knowledge of building .so libraries, using Makefile or tackling Tensors pointers.

  1. FFI and .so library
  2. Tensors through FFI

Debugging

If you found yourself using several print() and io.read() around the code with the purpose of finding out what's going on, well… there's a better and more efficient way: using a debugger. There are few alternatives, but we'll start with the easiest one: a command-line debugger.

  1. MobDebug (command-line)
  2. GDB (shared objects)

Contributors

Atcold

28 commits

gitter-badger

1 commits

ssakhavi

1 commits

Atcold/torch-Developer-Guide

Some advanced tricks with Torch7 explained easily

Lua

95

30 commits

updated Sep 18, 2016

See the code

README

Torch Developer Guide

Join the chat at https://gitter.im/Atcold/Torch-Developer-Guide

This repository tries to provide some advanced tricks with Torch7 explained easily

FFI series

LuaJIT FFI library provides an incredible easy way to call external C functions and use C data structures from pure Lua code. The FFI series will provide several working examples of playing with C from within Torch, taking for granted no prior knowledge of building .so libraries, using Makefile or tackling Tensors pointers.

  1. FFI and .so library
  2. Tensors through FFI

Debugging

If you found yourself using several print() and io.read() around the code with the purpose of finding out what's going on, well… there's a better and more efficient way: using a debugger. There are few alternatives, but we'll start with the easiest one: a command-line debugger.

  1. MobDebug (command-line)
  2. GDB (shared objects)

Contributors

Atcold

28 commits

gitter-badger

1 commits

ssakhavi

1 commits

Languages

Lua

54.7%

C

23.3%

Makefile

22.0%