Documentation
¶
Index ¶
- Variables
- func BaseDockerImageName(projectDir string) string
- func CUDABaseImageFor(cuda string, cuDNN string) (string, error)
- func DockerImageName(projectDir string) string
- func GetProjectDir(customDir string) (string, error)
- func Validate(yamlConfig string, version string) error
- func ValidateConfig(config *Config, version string) error
- func ValidateSchema(schemaLoader, dataLoader gojsonschema.JSONLoader) error
- type ArgumentType
- type Build
- type CUDABaseImage
- type Config
- type Example
- type Image
- type RunArgument
- type Stats
- type TFCompatibility
- type TorchCompatibility
- type Version
Constants ¶
This section is empty.
Variables ¶
View Source
var CUDABaseImages []CUDABaseImage
View Source
var TFCompatibilityMatrix []TFCompatibility
View Source
var TorchCompatibilityMatrix []TorchCompatibility
Functions ¶
func BaseDockerImageName ¶ added in v0.0.8
BaseDockerImageName returns the Docker image name for base images
func CUDABaseImageFor ¶ added in v0.0.8
func DockerImageName ¶ added in v0.0.8
DockerImageName returns the default Docker image name for images
func GetProjectDir ¶
Returns the project's root directory, or the directory specified by the --project-dir flag
func ValidateConfig ¶ added in v0.0.19
func ValidateSchema ¶ added in v0.0.19
func ValidateSchema(schemaLoader, dataLoader gojsonschema.JSONLoader) error
Types ¶
type ArgumentType ¶ added in v0.0.8
type ArgumentType string
const ( ArgumentTypeString ArgumentType = "str" ArgumentTypeInt ArgumentType = "int" ArgumentTypeFloat ArgumentType = "float" ArgumentTypeBool ArgumentType = "bool" ArgumentTypePath ArgumentType = "Path" )
type Build ¶ added in v0.0.8
type Build struct {
GPU bool `json:"gpu,omitempty" yaml:"gpu"`
PythonVersion string `json:"python_version,omitempty" yaml:"python_version"`
PythonRequirements string `json:"python_requirements,omitempty" yaml:"python_requirements"`
PythonPackages []string `json:"python_packages,omitempty" yaml:"python_packages"` // Deprecated, but included for backwards compatibility
Run []string `json:"run,omitempty" yaml:"run"`
SystemPackages []string `json:"system_packages,omitempty" yaml:"system_packages"`
PreInstall []string `json:"pre_install,omitempty" yaml:"pre_install"` // Deprecated, but included for backwards compatibility
CUDA string `json:"cuda,omitempty" yaml:"cuda"`
CuDNN string `json:"cudnn,omitempty" yaml:"cudnn"`
// contains filtered or unexported fields
}
type CUDABaseImage ¶ added in v0.0.8
func (*CUDABaseImage) ImageTag ¶ added in v0.0.8
func (i *CUDABaseImage) ImageTag() string
func (*CUDABaseImage) UnmarshalJSON ¶ added in v0.0.8
func (i *CUDABaseImage) UnmarshalJSON(data []byte) error
type Config ¶ added in v0.0.8
type Config struct {
Build *Build `json:"build" yaml:"build"`
Image string `json:"image,omitempty" yaml:"image"`
Predict string `json:"predict,omitempty" yaml:"predict"`
}
func DefaultConfig ¶ added in v0.0.8
func DefaultConfig() *Config
func GetConfig ¶
Loads and instantiates a Config object customDir can be specified to override the default - current working directory
func (*Config) CUDABaseImageTag ¶ added in v0.0.8
func (*Config) PythonRequirementsForArch ¶ added in v0.5.0
PythonRequirementsForArch returns a requirements.txt file with all the GPU packages resolved for given OS and architecture.
func (*Config) ValidateAndComplete ¶ added in v0.5.0
type RunArgument ¶ added in v0.0.8
type TFCompatibility ¶ added in v0.0.8
type TFCompatibility struct {
TF string
TFCPUPackage string
TFGPUPackage string
CUDA string
CuDNN string
Pythons []string
}
func (*TFCompatibility) UnmarshalJSON ¶ added in v0.0.8
func (compat *TFCompatibility) UnmarshalJSON(data []byte) error
type TorchCompatibility ¶ added in v0.0.8
type TorchCompatibility struct {
Torch string
Torchvision string
Torchaudio string
FindLinks string
ExtraIndexURL string
CUDA *string
Pythons []string
}
func (*TorchCompatibility) TorchVersion ¶ added in v0.0.8
func (c *TorchCompatibility) TorchVersion() string
func (*TorchCompatibility) TorchvisionVersion ¶ added in v0.0.8
func (c *TorchCompatibility) TorchvisionVersion() string
Click to show internal directories.
Click to hide internal directories.