You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Paddle/go/pserver/optimizer_test.go

23 lines
378 B

package pserver
import (
"io/ioutil"
"testing"
)
func TestOptimizerCreateRelease(t *testing.T) {
p := Parameter{
Name: "a",
ElementType: Float32,
}
p.Content = []byte{0.1, 0.3}
config, err := ioutil.ReadFile("./cclient/test/testdata/optimizer.pb.txt")
param := ParameterWithConfig{
Param: p,
Config: config,
}
o := newOptimizer(param)
o.Cleanup()
}