The automatic computation of the derivatives of a multidimensional function, or automatic differentiation [1], represents a fundamental component of many scientific computations, especially machine learning and deep learning applications. It enables making the functional optimization by gradient-based algorithms fully automatic and efficient. Unfortunately, notwithstanding the recent progresses, automatic differentiation is…