// getMockWorkFunc returns a func that returns nil for the given times running, or returns the given error.
func getMockWorkFunc(num int, err error) func() error {
cnt := 0
return func() error {
cnt++
if num == cnt {
return nil
}
return err
}
}
Partner of Di Bao. Pro Developer. Doer and also talker.
-
Keynote Systems
- Rijksmonument
Pinned Loading
-
changlin31/DNA
changlin31/DNA Public(CVPR 2020) Block-wisely Supervised Neural Architecture Search with Knowledge Distillation
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.