models

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadFile

func DownloadFile(ctx context.Context, tenant, user, projectName, modelName, versionName string, model *Model) error

DownloadFile downloads the model file from harbor

func UploadFile

func UploadFile(ctx context.Context, tenant, user, projectName, modelName, versionName string) error

UploadFile uploads the model file to harbor

Types

type ChunkInfo

type ChunkInfo struct {
	Path      string
	FileName  string
	Content   io.ReadCloser
	TotalSize int64
	PartFrom  int64
	PartTo    int64
}

type Model

type Model struct {
	ModelName   string         `json:"modelName,omitempty"`
	ProjectName string         `json:"projectName,omitempty"`
	VersionName string         `json:"versionName,omitempty"`
	Description string         `json:"description,omitempty"`
	Format      string         `json:"format,omitempty"`
	FrameWork   string         `json:"framework,omitempty"`
	Inputs      []model.Tensor `json:"inputs,omitempty"`
	Outputs     []model.Tensor `json:"outputs,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL