Skip to content
Snippets Groups Projects
Select Git revision
  • 75f1a1c00e159e9ad5cbc16242b471faa7c6ed41
  • master default
  • waldwiesen-simulation
  • weilin
  • textures
  • colab
  • torch_native-rewrite
  • ci-experiments
  • test-travis-test
  • os-travis
  • remove-lbm
  • bootstrap_theme
  • 0.3.3
  • 0.3.2
  • 0.3.1
  • 0.3.0
  • 0.2.2
  • 0.2.1
  • 0.2.0
  • 0.1.4
  • 0.1.3
  • 0.1.2
  • 0.1.1
  • 0.1.0
24 results

index.rst

Blame
  • index.rst 2.79 KiB

    pystencils-autodiff

    This is the documentation of pystencils-autodiff.

    This document assumes that you are already familiar with pystencils. If not, here is a good tutorial to start.

    Installation of this Auto-Diff Extension

    Install via pip :

    pip install pystencils-autodiff

    or if you downloaded this repository using:

    pip install -e .

    Then, you can access the submodule pystencils.autodiff.

    import pystencils.autodiff

    Usage

    Create a :class:`pystencils.AssignmentCollection` with pystencils:

    You can then obtain the corresponding backward assignments:

    You can see the derivatives with respective to the two inputs multiplied by the gradient diffz_C of the output z_C.

    You can also use the class :class:`pystencils_autodiff.AutoDiffOp` to obtain both the assignments (if you are curious) and auto-differentiable operations for Tensorflow...

    ... or Torch:

    Contents

    Indices and tables

    • :ref:`genindex`
    • :ref:`modindex`
    • :ref:`search`