I have used the direct output from the F.mse_loss function, but the result doesn’t have grad_fn= when I print out the output. Will it be a problem?

def forward(self, input_style):
    # GMM = GMM(input)

    input_style = input_style.detach().numpy()
    image_batch, image_channels, image_height, image_width = input_style.shape
    input_style_reshaped = np.reshape(input_style, (-1, image_channels))
    
    self.input_gmm, self.log_likelihood_input = self.gmm.inference(input_style_reshaped)
    self.input_gmm = torch.tensor(self.input_gmm, dtype=torch.float).to(device)
    self.loss = F.mse_loss(self.input_gmm, self.target).to(device)
    input_style = torch.tensor(input_style, dtype=torch.float).to(device)

    print('self.loss : ', self.loss)
    return input_style


Print out result
self.loss :  tensor(0.0224)
self.loss :  tensor(0.0195)