github.com/kubeflow/training-operator@v1.7.0/examples/tensorflow/mnist_with_summaries/README.md (about)

     1  ### Simple mnist example with persistent volume
     2  
     3  This is a simple example using an MNIST model that outputs a TF summary.
     4  The example also mounts a persistent volume for output, making it suitable
     5  for integrating with other components like Katib.
     6  
     7  The source code is borrowed from TensorFlow tutorials [here](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/tutorials/mnist/mnist_with_summaries.py).
     8  
     9  To build this image on x86_64:
    10  ```shell
    11  docker build -f Dockerfile -t kubeflow/tf-mnist-with-summaries:1.0 ./
    12  ```
    13  On ppc64le, run as:
    14  ```shell
    15  docker build -f Dockerfile.ppc64le -t kubeflow123/tf-mnist-with-summaries:1.0 ./
    16  ```
    17  
    18  Usage:
    19  1. Add the persistent volume and claim: `kubectl apply -f tfevent-volume/.`
    20  1. Deploy the TFJob: `kubectl apply -f tf_job_mnist.yaml`
    21     * If on ppc64le, please update tf_job_mnist.yaml to use the image of ppc64le firstly.