Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

编译 di/lcm 模块报错 #78

Open
caozongpeng opened this issue Dec 1, 2022 · 1 comment
Open

编译 di/lcm 模块报错 #78

caozongpeng opened this issue Dec 1, 2022 · 1 comment

Comments

@caozongpeng
Copy link

caozongpeng commented Dec 1, 2022

go build -v -o bin/main
webank/DI/lcm/service/lcm
webank/DI/lcm/service/lcm
service/lcm/splitTraining.go:39:42: not enough arguments in call to learner.CreateServiceSpec
have (string, string)
want (string, string, kubernetes.Interface)
service/lcm/splitTraining.go:78:17: t.helper undefined (type splitTraining has no field or method helper)
service/lcm/splitTraining.go:117:50: too many arguments in call to newConstructLearnerContainer
service/lcm/split_training.go:36:6: method redeclared: splitTraining.jobSpecForLearner
method(splitTraining) func(string) ("k8s.io/api/batch/v1".Job, error)
method(splitTraining) func(
"k8s.io/api/core/v1".Service) (*"k8s.io/api/batch/v1".Job, error)
service/lcm/split_training.go:36:24: splitTraining.jobSpecForLearner redeclared in this block
previous declaration at service/lcm/splitTraining.go:70:6
service/lcm/split_training.go:85:24: splitTraining.Start redeclared in this block
previous declaration at service/lcm/splitTraining.go:37:6
service/lcm/split_training.go:122:33: cannot use serviceSpec (type *"k8s.io/api/core/v1".Service) as type string in argument to t.jobSpecForLearner
service/lcm/split_training.go:149:25: (*splitTraining).NewCreateFromBOM redeclared in this block
previous declaration at service/lcm/splitTraining.go:128:6
service/lcm/split_training.go:179:29: (*splitTraining).NewCreateFromBOM.func1 redeclared in this block
previous declaration at service/lcm/splitTraining.go:137:33
service/lcm/split_training.go:200:25: (*splitTraining).CreateFromBOMForTFJob redeclared in this block
previous declaration at service/lcm/splitTraining.go:179:6
service/lcm/split_training.go:179:29: too many errors

image

@haineszhang95
Copy link

删掉splitTraining.go,这个文件已经废弃了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants