Solved by RaLo4 in post #2 
              
              
                It’s not directly calculating, but you could try out optuna / optuna-github which is “An open source hyperparameter optimization framework to automate hyperparameter search” 
A simple pytorch example can be found here