plenoptic.loss.l2_norm#
- plenoptic.loss.l2_norm(synth_rep, ref_rep, **kwargs)[source]#
Calculate the L2-norm of the difference between
ref_repandsynth_rep.For two tensors, \(x\) and \(y\), with \(n\) values each:
\[L2 = \sqrt{\sum_{i=1}^n (x_i - y_i)^2}\]- Parameters:
- Return type:
- Returns:
loss – The L2-norm of the difference between
ref_repandsynth_rep.