Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add GPUType field for TensorRT #107

Merged
merged 1 commit into from
Aug 21, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pkg/model/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ type Metadata struct {
Tags []string `json:"tags,omitempty" yaml:"tags,omitempty"`
Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
Format string `json:"format,omitempty" yaml:"format,omitempty"`
// GPUType is for TensorRT format only, it must be set when extract signature or serve
// as a online service, otherwise, it can not extract or serve as a service.
// for other model format, you can set empty string or not set.
GPUType string `json:"gpuType,omitempty" yaml:"gpuType,omitempty"`
Framework string `json:"framework,omitempty" yaml:"framework,omitempty"`
Metrics []Metric `json:"metrics,omitempty" yaml:"metrics,omitempty"`
Hyperparameters []Hyperparameter `json:"hyperparameters,omitempty" yaml:"hyperparameters,omitempty"`
Expand Down