Skip to content

Commit

Permalink
fix script to update boilerplate
Browse files Browse the repository at this point in the history
  • Loading branch information
tenzen-y committed May 1, 2022
1 parent 9646f0f commit a5a560a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
17 changes: 16 additions & 1 deletion examples/v1beta1/kubeflow-pipelines/mpi-job-horovod.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,26 @@
# Copyright 2022 The Kubeflow Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Kubeflow Pipeline with Katib component.

# In this example you will create Katib Experiment using Bayesian optimization algorithm.
# As a Trial template you will use Kubeflow MPIJob with Horovod MNIST training container.
# After that, you will compile a Kubeflow Pipeline with your Katib Experiment.
# Use Kubeflow Pipelines UI to upload the Pipeline and create the Experiment and Run.

# This Experiment is similar to this: https://github.com/kubeflow/katib/blob/master/examples/v1beta1/kubeflow-training-operator/mpijob-horovod.yaml
# This Experiment is similar to this:
# https://github.com/kubeflow/katib/blob/master/examples/v1beta1/kubeflow-training-operator/mpijob-horovod.yaml
# Check the training container source code here: https://github.com/kubeflow/mpi-operator/tree/master/examples/horovod.

# Note: To run this example, your Kubernetes cluster should run MPIJob operator.
Expand Down
4 changes: 2 additions & 2 deletions hack/boilerplate/update-boilerplate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ done
# ------------------ Python files ------------------
# Exclude gRPC manager and __init__.py files from the search.
find_python_files=$(
find ./cmd ./pkg ./hack ./test ./examples/v1beta1/trial-images -name "*.py" \
find ./cmd ./pkg ./hack ./test ./examples -name "*.py" \
! -path "./pkg/apis/manager/*" \
! -path "*__init__.py" \
! -path "./examples/v1beta1/trial-images/mxnet-mnist/*"
Expand All @@ -75,7 +75,7 @@ for i in ${find_python_files}; do
done

# ------------------ Shell files ------------------
find_shell_files=$(find ./pkg ./hack ./scripts ./test ./examples/v1beta1/kind-cluster -name "*.sh")
find_shell_files=$(find ./pkg ./hack ./scripts ./test ./examples -name "*.sh")

for i in ${find_shell_files}; do
# If the 3rd line starts with "# Copyright", remove the boilerplate.
Expand Down

0 comments on commit a5a560a

Please sign in to comment.