A pretty print library for torch and lua.
Lua
Pull request Compare This branch is 6 commits behind rosejn:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
pprint
.gitignore
CMakeLists.txt
README.md

README.md

Pretty Printing for Torch and Lua.

pprint(foo) will print a human readable printout of Lua tables.

  • keys are printed alphabetically
  • nested tables are indented
  • loops are detected
  • metatable info is printed
  • torch tensors are printed if less than 20 elements, otherwise just the dimensions.