jcjohnson / neural-style

Torch implementation of neural style algorithm
MIT License
18.31k stars 2.71k forks source link

Math problem about updateGradInput #405

Open SilvesterHsu opened 7 years ago

SilvesterHsu commented 7 years ago

The Gram Matrix in the code line 495 calculates the expression below: image where Fl(x) is x_flat in the code.

So in updateGradInput function, are we calculating the following expression? image