You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am new to using goro and cnns in general so right now I am trying to run the example mnist go file. However, I am running into the following error with WithOptimizer:
cannot use optimizer (variable of type *gorgonia.RMSPropSolver) as gorgonia.Solver value in argument to m.WithOptimizer: wrong type for method Step (have func(model []gorgonia.org/gorgonia.ValueGrad) (err error), want func([]gorgonia.org/gorgonia.ValueGrad) error)compilerInvalidIfaceAssign
I haven't changed anything in the example main.go file and I can import the following with no errors:
import (
"github.com/aunum/gold/pkg/v1/common/num"
"github.com/aunum/gold/pkg/v1/common/require"
"github.com/aunum/gold/pkg/v1/dense"
"github.com/aunum/goro/pkg/v1/layer"
m "github.com/aunum/goro/pkg/v1/model"
"github.com/aunum/log"
g "gorgonia.org/gorgonia"
"gorgonia.org/gorgonia/examples/mnist"
"gorgonia.org/tensor"
)
I am just confused as to why WithOptimizer is not working for me. Thanks!
The text was updated successfully, but these errors were encountered:
Hi,
I am new to using goro and cnns in general so right now I am trying to run the example mnist go file. However, I am running into the following error with WithOptimizer:
cannot use optimizer (variable of type *gorgonia.RMSPropSolver) as gorgonia.Solver value in argument to m.WithOptimizer: wrong type for method Step (have func(model []gorgonia.org/gorgonia.ValueGrad) (err error), want func([]gorgonia.org/gorgonia.ValueGrad) error)compilerInvalidIfaceAssign
I haven't changed anything in the example main.go file and I can import the following with no errors:
I am just confused as to why WithOptimizer is not working for me. Thanks!
The text was updated successfully, but these errors were encountered: