Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the modeljobs v1alpha1 API group +kubebuilder:object:generate=true +groupName=modeljobs.kleveross.io
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type ConversionBaseSpec
- type ConversionSource
- type ExtractionSource
- type Format
- type Framework
- type MMdnnSpec
- type ModelJob
- type ModelJobList
- type ModelJobPhase
- type ModelJobSource
- type ModelJobSpec
- type ModelJobStatus
Constants ¶
const ( // SourceFormatEnvKey is the env key of source framework SourceFormatEnvKey = "SOURCE_FORMAT" // FrameworkEnvKey is the env key of framework FrameworkEnvKey = "FRAMEWORK" // FormatEnvKey is the env key of format FormatEnvKey = "FORMAT" // ScriptCommandEnvKey is the python command of script ScriptCommandEnvKey = "COMMAND" // SourceModelPathEnvKey is the path env key of ormb pull SourceModelPathEnvKey = "SOURCE_MODEL_PATH" // DestinationModelPathEnvKey is the the path env key of convert's destination DestinationModelPathEnvKey = "DESTINATION_MODEL_PATH" // SourceModelTagEnvKey is the source tag of model SourceModelTagEnvKey = "SOURCE_MODEL_TAG" // DestinationModelTagEnvKey is the destination tag of model DestinationModelTagEnvKey = "DESTINATION_MODEL_TAG" // ExtractorEnvKey is extractor env key ExtractorEnvKey = "EXTRACTOR" // SourceModelPath is path of ormb pull SourceModelPath = "/models/input" // DestinationModelPath if the path of convert's destination DestinationModelPath = "/models/output" )
const GroupName = "kleveross.io"
GroupName is the group name use in this package
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "kleveross.io", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type ConversionBaseSpec ¶
type ConversionBaseSpec struct { From Format `json:"from,omitempty"` To Format `json:"to,omitempty"` }
func (*ConversionBaseSpec) DeepCopy ¶
func (in *ConversionBaseSpec) DeepCopy() *ConversionBaseSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConversionBaseSpec.
func (*ConversionBaseSpec) DeepCopyInto ¶
func (in *ConversionBaseSpec) DeepCopyInto(out *ConversionBaseSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConversionSource ¶
type ConversionSource struct {
MMdnn *MMdnnSpec `json:"mmdnn,omitempty"`
}
func (*ConversionSource) DeepCopy ¶
func (in *ConversionSource) DeepCopy() *ConversionSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConversionSource.
func (*ConversionSource) DeepCopyInto ¶
func (in *ConversionSource) DeepCopyInto(out *ConversionSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ExtractionSource ¶
type ExtractionSource struct {
Format Format `json:"format,omitempty"`
}
func (*ExtractionSource) DeepCopy ¶
func (in *ExtractionSource) DeepCopy() *ExtractionSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExtractionSource.
func (*ExtractionSource) DeepCopyInto ¶
func (in *ExtractionSource) DeepCopyInto(out *ExtractionSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Format ¶
type Format string
Format is model format, eg: SaveModel.
const ( FormatSavedModel Format = "SavedModel" FormatONNX Format = "ONNX" FormatH5 Format = "H5" FormatPMML Format = "PMML" FormatCaffeModel Format = "CaffeModel" FormatNetDef Format = "NetDef" FormatMXNETParams Format = "MXNetParams" FormatTorchScript Format = "TorchScript" FormatGraphDef Format = "GraphDef" FormatTensorRT Format = "TensorRT" FormatSKLearn Format = "SKLearn" FormatXGBoost Format = "XGBoost" FormatMLflow Format = "MLflow" FormatMLlib Format = "MLlib" )
type Framework ¶
type Framework string
Framework is model framework, eg: TensorFlow.
const ( FrameworkTensorflow Framework = "TensorFlow" FrameworkPyTorch Framework = "PyTorch" FrameworkCaffe Framework = "Caffe" FrameworkCaffe2 Framework = "Caffe2" FrameworkMXNet Framework = "MXNet" FrameworkKeras Framework = "Keras" FrameworkOthers Framework = "Others" FrameworkONNX Framework = "ONNX" FrameworkTensorRT Framework = "TensorRT" FrameworkPMML Framework = "PMML" )
type MMdnnSpec ¶
type MMdnnSpec struct {
ConversionBaseSpec `json:",inline"`
}
func (*MMdnnSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MMdnnSpec.
func (*MMdnnSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ModelJob ¶
type ModelJob struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ModelJobSpec `json:"spec,omitempty"` Status ModelJobStatus `json:"status,omitempty"` }
ModelJob is the Schema for the modeljobs API
func (*ModelJob) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModelJob.
func (*ModelJob) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ModelJob) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ModelJobList ¶
type ModelJobList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ModelJob `json:"items"` }
ModelJobList contains a list of ModelJob
func (*ModelJobList) DeepCopy ¶
func (in *ModelJobList) DeepCopy() *ModelJobList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModelJobList.
func (*ModelJobList) DeepCopyInto ¶
func (in *ModelJobList) DeepCopyInto(out *ModelJobList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ModelJobList) DeepCopyObject ¶
func (in *ModelJobList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ModelJobPhase ¶
type ModelJobPhase string
const ( ModelJobEmpty ModelJobPhase = "" ModelJobPending ModelJobPhase = "Pending" ModelJobRunning ModelJobPhase = "Running" ModelJobDeleting ModelJobPhase = "Deleting" ModelJobSucceeded ModelJobPhase = "Succeeded" ModelJobFailed ModelJobPhase = "Failed" )
type ModelJobSource ¶
type ModelJobSource struct { Extraction *ExtractionSource `json:"extraction,omitempty"` Conversion *ConversionSource `json:"conversion,omitempty"` }
ModelJobSource defines the modeljob source information
func (*ModelJobSource) DeepCopy ¶
func (in *ModelJobSource) DeepCopy() *ModelJobSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModelJobSource.
func (*ModelJobSource) DeepCopyInto ¶
func (in *ModelJobSource) DeepCopyInto(out *ModelJobSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ModelJobSpec ¶
type ModelJobSpec struct { // Model is model ref, eg: kleveross/resnet:v1. Model string `json:"model,omitempty"` // DesiredTag is the target tag of model convert. DesiredTag *string `json:"desiredTag,omitempty"` // ModelJobSource is model job source. ModelJobSource `json:",inline"` }
ModelJobSpec defines the desired state of ModelJob
func (*ModelJobSpec) DeepCopy ¶
func (in *ModelJobSpec) DeepCopy() *ModelJobSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModelJobSpec.
func (*ModelJobSpec) DeepCopyInto ¶
func (in *ModelJobSpec) DeepCopyInto(out *ModelJobSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ModelJobStatus ¶
type ModelJobStatus struct { // ModelJobPhase is model status. Phase ModelJobPhase `json:"phase"` // Human readable message indicating the reason for Failure Message string `json:"message"` }
ModelJobStatus defines the observed state of ModelJob
func (*ModelJobStatus) DeepCopy ¶
func (in *ModelJobStatus) DeepCopy() *ModelJobStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModelJobStatus.
func (*ModelJobStatus) DeepCopyInto ¶
func (in *ModelJobStatus) DeepCopyInto(out *ModelJobStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.