Skip to content
Snippets Groups Projects
Commit f7dc82ac authored by Brad Nelson's avatar Brad Nelson
Browse files

Merge branch 'master' of github.com:bruel-gabrielsson/TopologyLayer into homology

parents 6c0841d4 4194a9db
Branches
No related tags found
No related merge requests found
language: python
python:
- "2.7"
- "3.6"
# command to install dependencies
install:
- pip install -r requirements.txt
- python setup.py install
# tests
script:
- cd tests
- python -m unittest discover -p '*.py'
...@@ -75,7 +75,7 @@ Dependencies: ...@@ -75,7 +75,7 @@ Dependencies:
* Python (2 or 3) * Python (2 or 3)
* NumPy * NumPy
* SciPy * SciPy
* PyTorch 1.0 * PyTorch 1.0+
## Installation using pip ## Installation using pip
Assuming you have the listed dependencies and pip, you should be able to install. Assuming you have the listed dependencies and pip, you should be able to install.
...@@ -97,7 +97,7 @@ source activate toplayer ...@@ -97,7 +97,7 @@ source activate toplayer
Now, add dependencies Now, add dependencies
```bash ```bash
conda install numpy scipy matplotlib conda install numpy scipy matplotlib
conda install pytorch=1.0 torchvision -c pytorch conda install pytorch torchvision -c pytorch
``` ```
Now, you can install the TopologyLayer package. Now, you can install the TopologyLayer package.
...@@ -120,7 +120,7 @@ You are now ready to compile extensions. PyTorch tutorial on extensions [here]( ...@@ -120,7 +120,7 @@ You are now ready to compile extensions. PyTorch tutorial on extensions [here](
*Important*: in environment, it seems like using the pytorch conda channel is important *Important*: in environment, it seems like using the pytorch conda channel is important
```bash ```bash
source activate toplayer source activate toplayer
conda install pytorch=1.0 torchvision -c pytorch conda install pytorch torchvision -c pytorch
``` ```
Compilation uses python's `setuptools` module. Compilation uses python's `setuptools` module.
......
numpy==1.16.4
scipy==1.2.1
torch==1.1.0
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
#define _COCYCLE_H #define _COCYCLE_H
#include <vector> #include <vector>
#include <cstddef>
class Cocycle{ class Cocycle{
......
...@@ -12,6 +12,7 @@ must be able to: ...@@ -12,6 +12,7 @@ must be able to:
*/ */
#include <torch/extension.h> #include <torch/extension.h>
#include <vector> #include <vector>
#include <cstddef>
#include "cocycle.h" #include "cocycle.h"
// TODO: template over filtration type // TODO: template over filtration type
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment