A Common Interface for Automatic Differentiation