Skip to content

Commit

Permalink
add metrics_only flag
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Xue <andrewxue@anyscale.com>
  • Loading branch information
Andrew Xue committed Oct 16, 2023
1 parent 70cf98f commit 0e018c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/ray/data/_internal/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def update_stats_actor_metrics(
metric_keys = OpRuntimeMetrics.get_metric_keys()
stats = {key: 0 for key in metric_keys}
for op_metric in op_metrics:
metric_dict = op_metric.as_dict()
metric_dict = op_metric.as_dict(metrics_only=True)
for key in metric_keys:
stats[key] += metric_dict.get(key, 0)

Expand Down

0 comments on commit 0e018c6

Please sign in to comment.