From fbf02fa7f7945683dea094819bae8250216c5717 Mon Sep 17 00:00:00 2001 From: Richard Liaw Date: Mon, 30 Mar 2020 11:49:05 -0700 Subject: [PATCH] [Hotfix] Lint for Documentation (#7817) --- python/ray/util/sgd/torch/training_operator.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/ray/util/sgd/torch/training_operator.py b/python/ray/util/sgd/torch/training_operator.py index 873767dc1..8d275fe9c 100644 --- a/python/ray/util/sgd/torch/training_operator.py +++ b/python/ray/util/sgd/torch/training_operator.py @@ -22,6 +22,7 @@ try: except ImportError: pass + def _is_multiple(component): """Checks if a component (optimizer, model, etc) is not singular.""" return isinstance(component, collections.Iterable) and len(component) > 1