Skip to content

Commit

Permalink
Fix pytorch type comments (kubeflow#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuzisun authored and k8s-ci-robot committed Jun 30, 2019
1 parent 817a9ad commit 7d7f108
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 8 deletions.
6 changes: 4 additions & 2 deletions config/default/crds/serving_v1alpha1_kfservice.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,15 @@ spec:
pytorch:
properties:
modelClassName:
description: Name of the model class for PyTorch model
description: Defaults PyTorch model class name to 'PyTorchModel'
type: string
modelUri:
type: string
resources:
description: Defaults to requests and limits of 1CPU, 2Gb MEM.
type: object
runtimeVersion:
description: Defaults to latest PyTorch Version
type: string
required:
- modelUri
Expand Down Expand Up @@ -162,14 +163,15 @@ spec:
pytorch:
properties:
modelClassName:
description: Defaults to latest PyTorch Version.
description: Defaults PyTorch model class name to 'PyTorchModel'
type: string
modelUri:
type: string
resources:
description: Defaults to requests and limits of 1CPU, 2Gb MEM.
type: object
runtimeVersion:
description: Defaults to latest PyTorch Version
type: string
required:
- modelUri
Expand Down
8 changes: 4 additions & 4 deletions pkg/apis/serving/v1alpha1/kfservice_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,13 @@ type SKLearnSpec struct {

// PyTorchSpec defines arguments for configuring PyTorch model serving.
type PyTorchSpec struct {
ModelURI string `json:"modelUri"`
ModelURI string `json:"modelUri"`
// Defaults PyTorch model class name to 'PyTorchModel'
ModelClassName string `json:"modelClassName,omitempty"`
// Defaults to PyTorchModel
// Defaults to latest PyTorch Version
RuntimeVersion string `json:"runtimeVersion,omitempty"`
// Defaults to latest Runtime Version.
Resources v1.ResourceRequirements `json:"resources,omitempty"`
// Defaults to requests and limits of 1CPU, 2Gb MEM.
Resources v1.ResourceRequirements `json:"resources,omitempty"`
}

// CustomSpec provides a hook for arbitrary container configuration.
Expand Down
27 changes: 25 additions & 2 deletions pkg/apis/serving/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7d7f108

Please sign in to comment.