From 7dcf327d0fa2247dc01bd6cc81eeeebd9068f4a8 Mon Sep 17 00:00:00 2001 From: Scott Davidson Date: Mon, 2 Oct 2023 16:05:21 +0100 Subject: [PATCH] Fix typos in comments --- python/perftest/models/v1alpha1/pytorch.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/python/perftest/models/v1alpha1/pytorch.py b/python/perftest/models/v1alpha1/pytorch.py index 007ca67..57e14e0 100644 --- a/python/perftest/models/v1alpha1/pytorch.py +++ b/python/perftest/models/v1alpha1/pytorch.py @@ -30,7 +30,7 @@ class Device(str, schema.Enum): # List of models here should match list in images/pytorch-benchmark/Dockerfile class PytorchModel(str, schema.Enum): """ - Eumeration available models for benchmarking. + Enumeration of available models for benchmarking. """ ALEXNET = "alexnet" RESNET50 = "resnet50" @@ -220,8 +220,7 @@ async def pod_modified( pod: t.Dict[str, t.Any], fetch_pod_log: t.Callable[[], t.Awaitable[str]] ): - # Set default GPU count if none given in spec - # (have to do this in status since spec is immutable) + # Set default GPU count to display in status if none given in spec if self.spec.gpu_count is None: self.status.gpu_count = (0 if self.spec.device == "cpu" else 1) else: