├── .gitignore ├── .travis.yml ├── CONTRIBUTING.md ├── LICENSE ├── MANIFEST.in ├── README.md ├── docs ├── sct-ad-conditional.gif ├── sct-ad-debugging.png ├── sct-ad-forward.gif ├── sct-ad-insert_grad_of.gif ├── sct-ad-live.gif ├── sct-ad-loop.gif ├── sct-ad-numpy.gif ├── sct-ad-subroutine.gif ├── sct-ad-tf.gif ├── sct-ad.gif ├── small-benchmark.png └── toolspace.png ├── environment.yml ├── requirements.txt ├── setup.cfg ├── setup.py ├── tangent ├── __init__.py ├── anf.py ├── annotate.py ├── annotations.py ├── ast.py ├── cfg.py ├── comments.py ├── compile.py ├── create.py ├── desugar.py ├── errors.py ├── fence.py ├── fixes.py ├── forward_ad.py ├── funcsigs.py ├── grad_util.py ├── grads.py ├── grammar.py ├── naming.py ├── non_differentiable.py ├── optimization.py ├── quoting.py ├── reverse_ad.py ├── tangents.py ├── template.py ├── tracing.py ├── transformers.py └── utils.py └── tests ├── conftest.py ├── functions.py ├── test_anf.py ├── test_annotate.py ├── test_cfg.py ├── test_comments.py ├── test_compile.py ├── test_fence.py ├── test_forward_mode.py ├── test_hessian_vector_products.py ├── test_optimization.py ├── test_reverse_mode.py ├── test_reverse_over_reverse.py ├── test_template.py ├── test_transformers.py └── utils.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/.travis.yml -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/LICENSE -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/MANIFEST.in -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/README.md -------------------------------------------------------------------------------- /docs/sct-ad-conditional.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/docs/sct-ad-conditional.gif -------------------------------------------------------------------------------- /docs/sct-ad-debugging.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/docs/sct-ad-debugging.png -------------------------------------------------------------------------------- /docs/sct-ad-forward.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/docs/sct-ad-forward.gif -------------------------------------------------------------------------------- /docs/sct-ad-insert_grad_of.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/docs/sct-ad-insert_grad_of.gif -------------------------------------------------------------------------------- /docs/sct-ad-live.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/docs/sct-ad-live.gif -------------------------------------------------------------------------------- /docs/sct-ad-loop.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/docs/sct-ad-loop.gif -------------------------------------------------------------------------------- /docs/sct-ad-numpy.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/docs/sct-ad-numpy.gif -------------------------------------------------------------------------------- /docs/sct-ad-subroutine.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/docs/sct-ad-subroutine.gif -------------------------------------------------------------------------------- /docs/sct-ad-tf.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/docs/sct-ad-tf.gif -------------------------------------------------------------------------------- /docs/sct-ad.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/docs/sct-ad.gif -------------------------------------------------------------------------------- /docs/small-benchmark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/docs/small-benchmark.png -------------------------------------------------------------------------------- /docs/toolspace.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/docs/toolspace.png -------------------------------------------------------------------------------- /environment.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/environment.yml -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/requirements.txt -------------------------------------------------------------------------------- /setup.cfg: -------------------------------------------------------------------------------- 1 | [metadata] 2 | description-file = README.md 3 | -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/setup.py -------------------------------------------------------------------------------- /tangent/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/tangent/__init__.py -------------------------------------------------------------------------------- /tangent/anf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/tangent/anf.py -------------------------------------------------------------------------------- /tangent/annotate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/tangent/annotate.py -------------------------------------------------------------------------------- /tangent/annotations.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/tangent/annotations.py -------------------------------------------------------------------------------- /tangent/ast.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/tangent/ast.py -------------------------------------------------------------------------------- /tangent/cfg.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/tangent/cfg.py -------------------------------------------------------------------------------- /tangent/comments.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/tangent/comments.py -------------------------------------------------------------------------------- /tangent/compile.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/tangent/compile.py -------------------------------------------------------------------------------- /tangent/create.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/tangent/create.py -------------------------------------------------------------------------------- /tangent/desugar.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/tangent/desugar.py -------------------------------------------------------------------------------- /tangent/errors.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/tangent/errors.py -------------------------------------------------------------------------------- /tangent/fence.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/tangent/fence.py -------------------------------------------------------------------------------- /tangent/fixes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/tangent/fixes.py -------------------------------------------------------------------------------- /tangent/forward_ad.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/tangent/forward_ad.py -------------------------------------------------------------------------------- /tangent/funcsigs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/tangent/funcsigs.py -------------------------------------------------------------------------------- /tangent/grad_util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/tangent/grad_util.py -------------------------------------------------------------------------------- /tangent/grads.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/tangent/grads.py -------------------------------------------------------------------------------- /tangent/grammar.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/tangent/grammar.py -------------------------------------------------------------------------------- /tangent/naming.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/tangent/naming.py -------------------------------------------------------------------------------- /tangent/non_differentiable.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/tangent/non_differentiable.py -------------------------------------------------------------------------------- /tangent/optimization.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/tangent/optimization.py -------------------------------------------------------------------------------- /tangent/quoting.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/tangent/quoting.py -------------------------------------------------------------------------------- /tangent/reverse_ad.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/tangent/reverse_ad.py -------------------------------------------------------------------------------- /tangent/tangents.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/tangent/tangents.py -------------------------------------------------------------------------------- /tangent/template.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/tangent/template.py -------------------------------------------------------------------------------- /tangent/tracing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/tangent/tracing.py -------------------------------------------------------------------------------- /tangent/transformers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/tangent/transformers.py -------------------------------------------------------------------------------- /tangent/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/tangent/utils.py -------------------------------------------------------------------------------- /tests/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/tests/conftest.py -------------------------------------------------------------------------------- /tests/functions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/tests/functions.py -------------------------------------------------------------------------------- /tests/test_anf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/tests/test_anf.py -------------------------------------------------------------------------------- /tests/test_annotate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/tests/test_annotate.py -------------------------------------------------------------------------------- /tests/test_cfg.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/tests/test_cfg.py -------------------------------------------------------------------------------- /tests/test_comments.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/tests/test_comments.py -------------------------------------------------------------------------------- /tests/test_compile.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/tests/test_compile.py -------------------------------------------------------------------------------- /tests/test_fence.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/tests/test_fence.py -------------------------------------------------------------------------------- /tests/test_forward_mode.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/tests/test_forward_mode.py -------------------------------------------------------------------------------- /tests/test_hessian_vector_products.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/tests/test_hessian_vector_products.py -------------------------------------------------------------------------------- /tests/test_optimization.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/tests/test_optimization.py -------------------------------------------------------------------------------- /tests/test_reverse_mode.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/tests/test_reverse_mode.py -------------------------------------------------------------------------------- /tests/test_reverse_over_reverse.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/tests/test_reverse_over_reverse.py -------------------------------------------------------------------------------- /tests/test_template.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/tests/test_template.py -------------------------------------------------------------------------------- /tests/test_transformers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/tests/test_transformers.py -------------------------------------------------------------------------------- /tests/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srush/tangent/HEAD/tests/utils.py --------------------------------------------------------------------------------