From 785ce7f142687cf28d0eb3c6799119dec6fcef0d Mon Sep 17 00:00:00 2001 From: Rohan Varma Date: Fri, 17 Jan 2020 15:34:01 -0800 Subject: [PATCH] fix typo in metrics readme causing error (#32) Summary: Pull Request resolved: https://github.com/pytorch/elastic/pull/32 In torchelastic/metrics/api.py the handler is called ConsoleMetricHandler, but it is ConsoleMetricsHandler (note the extra "s") in the readme which could cause confusion for users who try to run this code. Differential Revision: D19456953 fbshipit-source-id: 83be603f27b59b14bbc694ed0b943b7de897c2f7 --- torchelastic/metrics/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/torchelastic/metrics/README.md b/torchelastic/metrics/README.md index 0677a728..913c2315 100644 --- a/torchelastic/metrics/README.md +++ b/torchelastic/metrics/README.md @@ -50,8 +50,8 @@ By adding the following configuration metrics in the `torchelastic` and ```python import torchelastic.metrics as metrics -metrics.configure(metrics.ConsoleMetricsHandler(), group = "torchelastic") -metrics.configure(metrics.ConsoleMetricsHandler(), group = "my_app") +metrics.configure(metrics.ConsoleMetricHandler(), group = "torchelastic") +metrics.configure(metrics.ConsoleMetricHandler(), group = "my_app") ``` #### Implementing a Custom Metric Handler @@ -77,4 +77,4 @@ Now all metrics in the group `my_app` will be printed to stdout as: ``` [1574213883.4182858][my_app]: my_metric= [1574213940.5237644][my_app]: my_metric= -``` \ No newline at end of file +```