Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: hughperkins/pytorch
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: git-steb/pytorch
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 3 commits
  • 22 files changed
  • 1 contributor

Commits on Apr 9, 2017

  1. Adding Swig generated C++/Lua interface import to PyTorch

    	- Any C++ type with Lua interface generated by Swig and
    	  composed into a SwigWrap type can be read via PyTorch
    	  with auto-completion support in Python.
    	- PyTorchAug import of 'nn' module has been generalized to allow
    	  import of Lua classes from any module.
    	- Added Boolean to types that can be popped from Lua stack into Python
    git-steb committed Apr 9, 2017
    Configuration menu
    Copy the full SHA
    62eaead View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0d0e9b1 View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2017

  1. Auto-import of Swig/C++ userdata Lua class objects

            - Added luaL_loadbuffer(...) interface to call Lua code
              directly from a string, for given chunkname
            - Swig/C++ objects appear as userdata in Lua along with a
              specially formatted metatable. SwigWrap implements a Lua
              torch.class that carries all functions for a given userdata.
            - The Lua code required for this is embedded in PyTorchAug
            - PyTorchAug.popSomething is extended to automatically convert userdata
              into SwigWrap torch.class;
    
    Remaining TODO
    
    	- check for compatible userdata before type wrapping in popSomething
    	- add tests that demonstrate the Lua/Swig interface
    git-steb committed Apr 15, 2017
    Configuration menu
    Copy the full SHA
    578a35f View commit details
    Browse the repository at this point in the history
Loading