Skip to content

Commit

Permalink
Merge 08ac260 into 623b8c0
Browse files Browse the repository at this point in the history
  • Loading branch information
ferhatelmas committed Dec 30, 2018
2 parents 623b8c0 + 08ac260 commit a84e752
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cuda/external.go
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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

0 comments on commit a84e752

Please sign in to comment.