Merge branch 'feature/gradient-aware-truncation' into 'master'

Allow to make truncation gradient aware

See merge request !27
4 jobs for master in 7 minutes (queued for 7 seconds)