Implementation defined in https://github.com/PaulCouairon/JAFAR/tree/main/src/layers,
and provided here for convenience.
