Compare commits
2 Commits
Author | SHA1 | Date |
---|---|---|
cuidongdong | f7e7e48620 | |
cuidongdong | bdeab36439 |
|
@ -1,14 +0,0 @@
|
|||
interface Container {
|
||||
name: 容器名
|
||||
type: 页面容器,tab容器,弹窗容器
|
||||
components: [component,component,component]
|
||||
}
|
||||
|
||||
interface Component extend Container{
|
||||
name:
|
||||
type:
|
||||
props
|
||||
}
|
||||
|
||||
// 每个容器组件有对应的渲染模板来渲染包含的子组件如tabs用的是TabContainer.template,Modal用的是Modal.template,生成单独的modal.vue文件
|
||||
|
|
@ -0,0 +1,52 @@
|
|||
# PIPELINE DEFINITION
|
||||
# Name: sample-pipeline
|
||||
# Inputs:
|
||||
# batch_size: int
|
||||
components:
|
||||
comp-train:
|
||||
executorLabel: exec-train
|
||||
inputDefinitions:
|
||||
parameters:
|
||||
batch_size:
|
||||
parameterType: NUMBER_INTEGER
|
||||
outputDefinitions:
|
||||
artifacts:
|
||||
model:
|
||||
artifactType:
|
||||
schemaTitle: system.Model
|
||||
schemaVersion: 0.0.1
|
||||
parameters:
|
||||
batch_size:
|
||||
parameterType: NUMBER_INTEGER
|
||||
deploymentSpec:
|
||||
executors:
|
||||
exec-train:
|
||||
container:
|
||||
args:
|
||||
- echo 'I am a model' > {{$.outputs.artifacts['model'].path}}
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
image: python:3.10
|
||||
pipelineInfo:
|
||||
name: sample-pipeline
|
||||
root:
|
||||
dag:
|
||||
tasks:
|
||||
train:
|
||||
cachingOptions:
|
||||
enableCache: true
|
||||
componentRef:
|
||||
name: comp-train
|
||||
inputs:
|
||||
parameters:
|
||||
batch_size:
|
||||
componentInputParameter: batch_size
|
||||
taskInfo:
|
||||
name: train
|
||||
inputDefinitions:
|
||||
parameters:
|
||||
batch_size:
|
||||
parameterType: NUMBER_INTEGER
|
||||
schemaVersion: 2.1.0
|
||||
sdkVersion: kfp-2.4.0
|
Loading…
Reference in New Issue