MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / std

Method std

examples/gemm_tuner/GemmTuner.py:409–417  ·  view source on GitHub ↗

Get the standard deviation as a measure of dispersion of the distribution. We should aim for higher values as they indicate there is high variation in the distribution. Thus the evidence of the best config is stronger.

(self)

Source from the content-addressed store, hash-verified

407 return self._gemm_config_freq.most_common(1)
408
409 def std(self):
410 """ Get the standard deviation as a measure of dispersion of the distribution. We should aim for higher values
411 as they indicate there is high variation in the distribution. Thus the evidence of the best config is stronger.
412 """
413 freqs = self._gemm_config_freq.values()
414 if len(freqs) == 0:
415 return 0
416 mean_freq = sum(freqs) / len(freqs)
417 return math.sqrt(sum((freq - mean_freq) ** 2 for freq in freqs) / len(freqs))
418
419
420################################################################################

Callers 1

mainFunction · 0.80

Calls 1

sqrtMethod · 0.80

Tested by

no test coverage detected