Documentation
¶
Index ¶
Constants ¶
View Source
const ( TargetDockerCPU = "docker-cpu" TargetDockerGPU = "docker-gpu" )
Variables ¶
View Source
var CUDABaseImages []CUDABaseImage
View Source
var TFCompatibilityMatrix []TFCompatibility
View Source
var TorchCompatibilityMatrix []TorchCompatibility
Functions ¶
Types ¶
type ArgumentType ¶
type ArgumentType string
const ( ArgumentTypeString ArgumentType = "str" ArgumentTypeInt ArgumentType = "int" ArgumentTypeFloat ArgumentType = "float" ArgumentTypeBool ArgumentType = "bool" ArgumentTypePath ArgumentType = "Path" )
type CUDABaseImage ¶
func (*CUDABaseImage) ImageTag ¶
func (i *CUDABaseImage) ImageTag() string
func (*CUDABaseImage) UnmarshalJSON ¶
func (i *CUDABaseImage) UnmarshalJSON(data []byte) error
type Config ¶
type Config struct {
Environment *Environment `json:"environment" yaml:"environment"`
Model string `json:"model" yaml:"model"`
Examples []*Example `json:"examples" yaml:"examples"`
Workdir string `json:"workdir" yaml:"workdir"`
}
func ConfigFromYAML ¶
func DefaultConfig ¶
func DefaultConfig() *Config
func (*Config) CUDABaseImageTag ¶
func (*Config) PythonPackagesForArch ¶
func (*Config) ValidateAndCompleteConfig ¶
type Environment ¶
type Environment struct {
PythonVersion string `json:"python_version" yaml:"python_version"`
PythonRequirements string `json:"python_requirements" yaml:"python_requirements"`
PythonExtraIndexURLs []string `json:"python_extra_index_urls" yaml:"python_extra_index_urls"`
PythonFindLinks []string `json:"python_find_links" yaml:"python_find_links"`
PythonPackages []string `json:"python_packages" yaml:"python_packages"`
SystemPackages []string `json:"system_packages" yaml:"system_packages"`
PreInstall []string `json:"pre_install" yaml:"pre_install"`
Architectures []string `json:"architectures" yaml:"architectures"`
CUDA string `json:"cuda" yaml:"cuda"`
CuDNN string `json:"cudnn" yaml:"cudnn"`
BuildRequiresGPU bool `json:"build_requires_gpu" yaml:"build_requires_gpu"`
}
type Image ¶
type Image struct {
URI string `json:"uri"`
Created time.Time `json:"created"`
Arch string `json:"arch"`
RunArguments map[string]*RunArgument `json:"run_arguments"`
TestStats *Stats `json:"test_stats"`
BuildFailed bool `json:"build_failed"`
}
func ImageForArch ¶
type RunArgument ¶
type TFCompatibility ¶
type TFCompatibility struct {
TF string
TFCPUPackage string
TFGPUPackage string
CUDA string
CuDNN string
Pythons []string
}
func (*TFCompatibility) UnmarshalJSON ¶
func (compat *TFCompatibility) UnmarshalJSON(data []byte) error
type TorchCompatibility ¶
type TorchCompatibility struct {
Torch string
Torchvision string
Torchaudio string
IndexURL string
CUDA *string
Pythons []string
}
func (*TorchCompatibility) TorchVersion ¶
func (c *TorchCompatibility) TorchVersion() string
func (*TorchCompatibility) TorchvisionVersion ¶
func (c *TorchCompatibility) TorchvisionVersion() string
Click to show internal directories.
Click to hide internal directories.