mirror of
https://github.com/gonum/gonum.git
synced 2025-10-05 23:26:52 +08:00
optimize: remove redundant return
This commit is contained in:
@@ -48,7 +48,6 @@ func (g *GradientDescent) Init(dim, tasks int) int {
|
|||||||
func (g *GradientDescent) Run(operation chan<- Task, result <-chan Task, tasks []Task) {
|
func (g *GradientDescent) Run(operation chan<- Task, result <-chan Task, tasks []Task) {
|
||||||
g.status, g.err = localOptimizer{}.run(g, g.GradStopThreshold, operation, result, tasks)
|
g.status, g.err = localOptimizer{}.run(g, g.GradStopThreshold, operation, result, tasks)
|
||||||
close(operation)
|
close(operation)
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (g *GradientDescent) initLocal(loc *Location) (Operation, error) {
|
func (g *GradientDescent) initLocal(loc *Location) (Operation, error) {
|
||||||
|
Reference in New Issue
Block a user