Skip to content

Commit

Permalink
Add docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
nv-hwoo committed Mar 7, 2024
1 parent 040e131 commit b66684c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/c++/perf_analyzer/genai-pa/genai_pa/llm_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,11 @@ def __init__(

@property
def data(self) -> dict:
"""Returns all the metrics."""
return {k: v for k, v in self.__dict__.items() if not k.startswith("_")}

def get_base_name(self, metric_name: str) -> str:
"""Returns singular name of a given metric."""
if metric_name in self._base_names:
return self._base_names[metric_name]
else:
Expand Down

0 comments on commit b66684c

Please sign in to comment.