gotch/example/mnist/main.go

30 lines
315 B
Go
Raw Normal View History

package main
2020-06-18 08:14:48 +01:00
import (
"flag"
)
var model string
func init() {
flag.StringVar(&model, "model", "linear", "specify a model to run")
}
func main() {
2020-06-18 08:14:48 +01:00
flag.Parse()
switch model {
case "linear":
runLinear()
case "nn":
runNN()
case "cnn":
2020-06-23 16:37:33 +01:00
runCNN2()
2020-06-18 08:14:48 +01:00
default:
panic("No specified model to run")
}
}