Set the prior precision to the value from a grid that minimizes an objective.
Every entry of the prior precision (each block of Layerwise, each weight of Diagonal) takes the same value. Other hyperparameters, such as a learned sigma, stay as they are. The objective runs under torch.no_grad, so it needs no gradient.