Skip to content

Commit 8bcc444

Browse files
committed
Update component.yaml to kfp v2 sdk
Update component.yaml to kfp v2 compatible. In v2, you need to declare the data type for all of the input/output arguments. Signed-off-by: Yihong Wang <[email protected]>
1 parent 4b2745e commit 8bcc444

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

utils/mlops/kubeflow/robustness_evaluation_fgsm_pytorch/component.yaml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,23 @@ description: |
2424
metadata:
2525
annotations: {platform: 'OpenSource'}
2626
inputs:
27-
- {name: model_id, description: 'Required. Training model ID', default: 'training-dummy'}
28-
- {name: epsilon, description: 'Required. Epsilon value for the FGSM attack', default: '0.2'}
29-
- {name: model_class_file, description: 'Required. pytorch model class file'}
30-
- {name: model_class_name, description: 'Required. pytorch model class name', default: 'model'}
31-
- {name: feature_testset_path, description: 'Required. Feature test dataset path in the data bucket'}
32-
- {name: label_testset_path, description: 'Required. Label test dataset path in the data bucket'}
33-
- {name: loss_fn, description: 'Required. PyTorch model loss function'}
34-
- {name: optimizer, description: 'Required. PyTorch model optimizer'}
35-
- {name: clip_values, description: 'Required. PyTorch model clip_values allowed for features (min, max)'}
36-
- {name: nb_classes, description: 'Required. The number of classes of the model'}
37-
- {name: input_shape, description: 'Required. The shape of one input instance for the pytorch model'}
38-
- {name: data_bucket_name, description: 'Bucket that has the processed data', default: 'training-data'}
39-
- {name: result_bucket_name, description: 'Bucket that has the training results', default: 'training-result'}
40-
- {name: adversarial_accuracy_threshold, description: 'Model accuracy threshold on adversarial samples', default: '0.2'}
27+
- {name: model_id, type: String, description: 'Required. Training model ID', default: 'training-dummy'}
28+
- {name: epsilon, type: String, description: 'Required. Epsilon value for the FGSM attack', default: '0.2'}
29+
- {name: model_class_file, type: String, description: 'Required. pytorch model class file'}
30+
- {name: model_class_name, type: String, description: 'Required. pytorch model class name', default: 'model'}
31+
- {name: feature_testset_path, type: String, description: 'Required. Feature test dataset path in the data bucket'}
32+
- {name: label_testset_path, type: String, description: 'Required. Label test dataset path in the data bucket'}
33+
- {name: loss_fn, type: String, description: 'Required. PyTorch model loss function'}
34+
- {name: optimizer, type: String, description: 'Required. PyTorch model optimizer'}
35+
- {name: clip_values, type: String, description: 'Required. PyTorch model clip_values allowed for features (min, max)'}
36+
- {name: nb_classes, type: String, description: 'Required. The number of classes of the model'}
37+
- {name: input_shape, type: String, description: 'Required. The shape of one input instance for the pytorch model'}
38+
- {name: data_bucket_name, type: String, description: 'Bucket that has the processed data', default: 'training-data'}
39+
- {name: result_bucket_name, type: String, description: 'Bucket that has the training results', default: 'training-result'}
40+
- {name: adversarial_accuracy_threshold, type: String, description: 'Model accuracy threshold on adversarial samples', default: '0.2'}
4141
outputs:
42-
- {name: metric_path, description: 'Path for robustness check output'}
43-
- {name: robust_status, description: 'Path for robustness status output'}
42+
- {name: metric_path, type: String, description: 'Path for robustness check output'}
43+
- {name: robust_status, type: String, description: 'Path for robustness status output'}
4444
implementation:
4545
container:
4646
image: aipipeline/robustness-evaluation:pytorch

0 commit comments

Comments
 (0)