Thanks for the code.
You are detaching x in Net_Ensemble, which is used as self.classifier in model_combined.forward_model. Detaching the activation will cut the computation graph, such that Autograd won’t be able to backpropagate to the original input anymore.
After I’ve removed the .detach() call, the error is gone (I’ve used dummy tensors to test it, not the complete script).