Skip to content

Commit

Permalink
Merge pull request #635 from m3ngyang/fix-struct
Browse files Browse the repository at this point in the history
fix structure of trainer
  • Loading branch information
typhoonzero committed Mar 6, 2018
2 parents 2d2c23c + 6807438 commit 99a82a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go/apis/paddlepaddle/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ type TrainerSpec struct {
MinInstance int `json:"min-instance"`
MaxInstance int `json:"max-instance"`
Resources apiv1.ResourceRequirements `json:"resources"`
ReplicaSpec *batchv1.JobSpec `json:"replicaSpec"`
ReplicaSpec *batchv1.Job `json:"replicaSpec"`
}

// TrainingJobPhase is the phase of TrainingJob
Expand Down
2 changes: 1 addition & 1 deletion go/apis/paddlepaddle/v1/zz_generated.deepcopy.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func (in *TrainerSpec) DeepCopyInto(out *TrainerSpec) {
if *in == nil {
*out = nil
} else {
*out = new(batch_v1.JobSpec)
*out = new(batch_v1.Job)
(*in).DeepCopyInto(*out)
}
}
Expand Down

0 comments on commit 99a82a9

Please sign in to comment.