[Core] Fix random bugs found. (#11128)

This commit is contained in:
SangBin Cho
2020-09-30 00:11:57 -07:00
committed by GitHub
parent 3504391fd2
commit 474af36591
2 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ class PlacementGroup:
resource_name, value = self._get_none_zero_resource(bundle)
num_cpus = 0
num_gpus = 0
resources = None
resources = {}
if resource_name == "CPU":
num_cpus = value
elif resource_name == "GPU":