fix style check

emailweixu-patch-1
typhoonzero 7 years ago
parent 08b529a73e
commit 900e911f42

@ -13,4 +13,3 @@ Check the logs for the distributed training progress and analyze the performance
## Enable verbos logs ## Enable verbos logs
Edit `pserver.yaml` and `trainer.yaml` and add an environment variable `GLOG_v=3` to see what happend in detail. Edit `pserver.yaml` and `trainer.yaml` and add an environment variable `GLOG_v=3` to see what happend in detail.

@ -11,7 +11,6 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
"""VGG16 benchmark in Fluid""" """VGG16 benchmark in Fluid"""
from __future__ import print_function from __future__ import print_function

@ -1,13 +1,13 @@
apiVersion: extensions/v1beta1 apiVersion: extensions/v1beta1
kind: ReplicaSet kind: ReplicaSet
metadata: metadata:
name: vgg16job-pserver name: vgg16v2job-pserver
spec: spec:
replicas: 10 replicas: 10
template: template:
metadata: metadata:
labels: labels:
paddle-job-pserver: vgg16job paddle-job-pserver: vgg16v2job
spec: spec:
hostNetwork: true hostNetwork: true
imagePullSecrets: imagePullSecrets:
@ -21,7 +21,7 @@ spec:
containerPort: 30236 containerPort: 30236
env: env:
- name: PADDLE_JOB_NAME - name: PADDLE_JOB_NAME
value: vgg16job value: vgg16v2job
- name: TRAINERS - name: TRAINERS
value: "20" value: "20"
- name: PSERVERS - name: PSERVERS

@ -1,14 +1,14 @@
apiVersion: batch/v1 apiVersion: batch/v1
kind: Job kind: Job
metadata: metadata:
name: vgg16job-trainer name: vgg16v2job-trainer
spec: spec:
parallelism: 20 parallelism: 20
completions: 20 completions: 20
template: template:
metadata: metadata:
labels: labels:
paddle-job: vgg16job paddle-job: vgg16v2job
spec: spec:
imagePullSecrets: imagePullSecrets:
- name: job-registry-secret - name: job-registry-secret
@ -20,7 +20,7 @@ spec:
command: ["paddle_k8s", "start_trainer", "v2"] command: ["paddle_k8s", "start_trainer", "v2"]
env: env:
- name: PADDLE_JOB_NAME - name: PADDLE_JOB_NAME
value: vgg16job value: vgg16v2job
- name: TRAINERS - name: TRAINERS
value: "20" value: "20"
- name: PSERVERS - name: PSERVERS

Loading…
Cancel
Save