mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/SPATZ.git
synced 2025-08-06 18:37:34 +00:00
Added dummy metric
This commit is contained in:
14
spatz/metrics/metric.py
Normal file
14
spatz/metrics/metric.py
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
|
||||
from typing import Any
|
||||
|
||||
|
||||
class Metric:
|
||||
def __init__(self) -> None:
|
||||
self.__sum = 0
|
||||
|
||||
def get_score():
|
||||
pass
|
||||
|
||||
def __call__(self, *args) -> Any:
|
||||
self.__sum += abs(x - y)
|
Reference in New Issue
Block a user