From 51b1a38ad726408fddd087d16f6b70671bdf117e Mon Sep 17 00:00:00 2001
From: Markus Holzer <markus.holzer@fau.de>
Date: Thu, 25 Nov 2021 10:44:28 +0100
Subject: [PATCH] Remove autodiff

---
 README.md              |  1 -
 pystencils/__init__.py |  7 -------
 pystencils/autodiff.py | 12 ------------
 setup.py               |  1 -
 4 files changed, 21 deletions(-)
 delete mode 100644 pystencils/autodiff.py

diff --git a/README.md b/README.md
index ff391993e..5ab85add4 100644
--- a/README.md
+++ b/README.md
@@ -56,7 +56,6 @@ All options:
 - `alltrafos`: pulls in additional dependencies for loop simplification e.g. libisl
 - `bench_db`: functionality to store benchmark result in object databases
 - `interactive`: installs dependencies to work in Jupyter including image I/O, plotting etc.
-- `autodiff`: enable derivation of adjoint kernels and generation of Torch/Tensorflow operations
 - `doc`: packages to build documentation
 
 Options can be combined e.g.
diff --git a/pystencils/__init__.py b/pystencils/__init__.py
index a10acb8f6..ba595db0f 100644
--- a/pystencils/__init__.py
+++ b/pystencils/__init__.py
@@ -15,13 +15,6 @@ from .slicing import make_slice
 from .spatial_coordinates import x_, x_staggered, x_staggered_vector, x_vector, y_, y_staggered, z_, z_staggered
 from .sympyextensions import SymbolCreator
 
-try:
-    import pystencils_autodiff
-
-    autodiff = pystencils_autodiff
-except ImportError:
-    pass
-
 __all__ = ['Field', 'FieldType', 'fields',
            'TypedSymbol',
            'make_slice',
diff --git a/pystencils/autodiff.py b/pystencils/autodiff.py
deleted file mode 100644
index 96ac836c8..000000000
--- a/pystencils/autodiff.py
+++ /dev/null
@@ -1,12 +0,0 @@
-"""
-Provides tools for generation of auto-differentiable operations.
-
-See https://github.com/theHamsta/pystencils_autodiff
-
-Installation:
-
-.. code-block:: bash
-    pip install pystencils-autodiff
-"""
-
-raise NotImplementedError('pystencils-autodiff is not installed. Run `pip install pystencils-autodiff`')
diff --git a/setup.py b/setup.py
index 5e11ec2f4..a2053b422 100644
--- a/setup.py
+++ b/setup.py
@@ -117,7 +117,6 @@ setuptools.setup(name='pystencils',
                      'alltrafos': ['islpy', 'py-cpuinfo'],
                      'bench_db': ['blitzdb', 'pymongo', 'pandas'],
                      'interactive': ['matplotlib', 'ipy_table', 'imageio', 'jupyter', 'pyevtk', 'rich', 'graphviz'],
-                     'autodiff': ['pystencils-autodiff'],
                      'doc': ['sphinx', 'sphinx_rtd_theme', 'nbsphinx',
                              'sphinxcontrib-bibtex', 'sphinx_autodoc_typehints', 'pandoc'],
                      'use_cython': ['Cython']
-- 
GitLab