Torch Derivative Tutorials

These tutorials require PyTorch and a configured JCMsuite runtime.

Experimental feature

The jcmsuite.torch integration is experimental. Its API and behavior can change in future releases. Do not depend on its current interface for production workflows without testing each package update.

Verify A Tutorial

Use the command and working directory specified on each tutorial page. A successful tutorial exits without an exception and prints or writes the result described by the tutorial. For gradient tutorials, verify the reported gradient or comparison against the ordinary solver derivative. For validation tutorials, verify that the documented validation error is raised.

See Torch Integration for the shared input, output, gradient, and export rules.

Second-Order Examples

These examples use short scripts, printed results, and fixed geometry. Each folder contains all project files.