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.
Numeric postprocess results: Fourier objectives and nested scattering derivatives.
- Differentiate Numeric Postprocess Results Twice
- Differentiate Structured Result Data
- Check Torch Export Limits
- Check Torch Gradients
- Bind a Real Project Key
- Bind a Complex Project Key
- Bind Alternative Shape Derivatives
- Export Torch Result Data
- Reject Incompatible Torch Dtypes
- Reject Duplicate Derivative Labels
- Reject Missing Derivative Bindings
- Reject Unknown Derivative Bindings