Skip to content

Commit

Permalink
Correct error message
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelvenzi committed Jan 30, 2021
1 parent d610aee commit 23547ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/v1/model/model.go
Expand Up @@ -639,7 +639,7 @@ func (s *Sequential) CloneLearnablesTo(to *Sequential) error {
func (s *Sequential) SetLearnables(desired g.Nodes) error {
destination := s.trainChain.Learnables()
if len(desired) != len(destination) {
return fmt.Errorf("models must be identical to clone learnables")
return fmt.Errorf("cannot set learnables: number of desired nodes not equal to number of nodes in model")
}
for i, learnable := range destination {
c := desired[i].Clone()
Expand Down

0 comments on commit 23547ed

Please sign in to comment.