Skip to content

Commit

Permalink
Fix softmax op (#506)
Browse files Browse the repository at this point in the history
* Fix go mod tidy command

* Fix SoftMax operation

Now it uses the tensor implementation
  • Loading branch information
dcu committed Oct 21, 2021
1 parent 68fd765 commit 70448c3
Show file tree
Hide file tree
Showing 26 changed files with 186 additions and 2,718 deletions.
4 changes: 2 additions & 2 deletions example_err_test.go
Expand Up @@ -61,9 +61,9 @@ func Example_errorHandling() {
_ = nn2PlusWrong

// Output:
// nn: ÷ false(%a, %f) :: Matrix float32
// nn: Softmax{-1, false}()(%9) :: Matrix float32
// An error occurs: Type inference error. Op: + false. Children: [Matrix float32, Matrix float64], OpType:Matrix a → Matrix a → Matrix a: Unable to unify while inferring type of + false: Unification Fail: float64 ~ float32 cannot be unified
// nn2: ÷ false(%a, %f) :: Matrix float32
// nn2: Softmax{-1, false}()(%9) :: Matrix float32
// An error occurs (caught by recover()): Type inference error. Op: + false. Children: [Matrix float32, Matrix float64], OpType:Matrix a → Matrix a → Matrix a: Unable to unify while inferring type of + false: Unification Fail: float64 ~ float32 cannot be unified

}
8 changes: 0 additions & 8 deletions examples/charRNN/go.mod

This file was deleted.

210 changes: 0 additions & 210 deletions examples/charRNN/go.sum

This file was deleted.

10 changes: 0 additions & 10 deletions examples/convnet/go.mod

This file was deleted.

221 changes: 0 additions & 221 deletions examples/convnet/go.sum

This file was deleted.

10 changes: 0 additions & 10 deletions examples/convnet_cuda/go.mod

This file was deleted.

221 changes: 0 additions & 221 deletions examples/convnet_cuda/go.sum

This file was deleted.

11 changes: 0 additions & 11 deletions examples/iris/go.mod

This file was deleted.

215 changes: 0 additions & 215 deletions examples/iris/go.sum

This file was deleted.

9 changes: 0 additions & 9 deletions examples/logisticregression/go.mod

This file was deleted.

214 changes: 0 additions & 214 deletions examples/logisticregression/go.sum

This file was deleted.

10 changes: 0 additions & 10 deletions examples/mnist/go.mod

This file was deleted.

145 changes: 0 additions & 145 deletions examples/mnist/go.sum

This file was deleted.

10 changes: 0 additions & 10 deletions examples/resnet/go.mod

This file was deleted.

0 comments on commit 70448c3

Please sign in to comment.