chore(sdk): Remove redundant check in set_gpu_limit (#6866)

* remove redundant check in set_gpu_limit

* release note
This commit is contained in:
Chen Sun 2021-11-08 10:35:02 -08:00 committed by GitHub
parent 60233f2a1d
commit 3bbe81a463
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -18,6 +18,7 @@
* Fix importer ignoring reimport setting, and switch to Protobuf.Value for import uri [\#6827](https://github.com/kubeflow/pipelines/pull/6827)
* Fix display name support for groups [\#6832](https://github.com/kubeflow/pipelines/pull/6832)
* Remove redundant check in set_gpu_limit [\#6866](https://github.com/kubeflow/pipelines/pull/6866)
## Documentation Updates

View File

@ -411,8 +411,7 @@ class Container(V1Container):
ignored in v2.
"""
if not isinstance(gpu, _pipeline_param.PipelineParam) or not isinstance(
gpu, _pipeline_param.PipelineParam):
if not isinstance(gpu, _pipeline_param.PipelineParam):
self._validate_positive_number(gpu, 'gpu')
if self._container_spec: