Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some typo fixes #256

Merged
merged 2 commits into from Dec 30, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion cuda/external.go
Expand Up @@ -93,7 +93,7 @@ func (e *Engine) Init(device cu.Device, size int64) (err error) {
e.Unlock()
err2 := e.Close()
if err2 != nil {
return errors.Wrapf(err, "Failed to initialize CUDA Engine with size %d for device %v. Additionally, there were errors that occured when cleaning up %v", size, device, err)
return errors.Wrapf(err, "Failed to initialize CUDA Engine with size %d for device %v. Additionally, there were errors that occurred when cleaning up %v", size, device, err)
}
return errors.Wrapf(err, "Failed to initialize CUDA Engine with size %d for device %v", size, device)
}
Expand Down
2 changes: 1 addition & 1 deletion errors.go
Expand Up @@ -78,7 +78,7 @@ func checkErrSetDeriv(err error, dv *dualValue) error {
return err
}

// SymDiffError provides the context at which an error occured
// SymDiffError provides the context at which an error occurred
type SymDiffError struct {
nodes Nodes
single *Node
Expand Down
2 changes: 1 addition & 1 deletion node_set.go
Expand Up @@ -148,7 +148,7 @@ func (set NodeSet) Iter() <-chan *Node {

// Equal determines if two sets are equal to each other.
// If they both are the same size and have the same items they are considered equal.
// Order of items is not relevent for sets to be equal.
// Order of items is not relevant for sets to be equal.
func (set NodeSet) Equal(other NodeSet) bool {
if set.Cardinality() != other.Cardinality() {
return false
Expand Down
2 changes: 1 addition & 1 deletion solvers_test.go
Expand Up @@ -112,7 +112,7 @@ func manualRMSProp32(t *testing.T, s *RMSPropSolver, model []ValueGrad) {
eps := float32(s.eps)
clip := float32(s.clip)

// NOTE: THIS IS NAUGHTY. A proper comparsion using 1e-5 should be used but that causes errors.
// NOTE: THIS IS NAUGHTY. A proper comparison using 1e-5 should be used but that causes errors.
closef32 := func(a, b float32) bool {
return dawson.ToleranceF32(a, b, 1e-4)
}
Expand Down