MCPcopy Create free account
hub / github.com/ModelTC/LightX2V / error

Function error

lightx2v_kernel/python/lightx2v_kernel/utils.py:38–72  ·  view source on GitHub ↗

Compute SNR between y_pred(tensor) and y_real(tensor) SNR can be calcualted as following equation: SNR(pred, real) = (pred - real) ^ 2 / (real) ^ 2 if x and y are matrixs, SNR error over matrix should be the mean value of SNR error over all elements. SNR(pred, real)

(y_pred: torch.Tensor, y_real: torch.Tensor)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

test_fake_quant.pyFile · 0.90
test_accuracyMethod · 0.90
test_accuracyMethod · 0.90
test_accuracyMethod · 0.90

Calls

no outgoing calls

Tested by 3

test_accuracyMethod · 0.72
test_accuracyMethod · 0.72
test_accuracyMethod · 0.72