Two minor typos

This commit is contained in:
Alex Mellnik 2019-06-11 22:09:59 -07:00
parent 1902c0e7c5
commit e17999f19b
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ And you use less memory.
Not only should your activation functions be [type-stable](https://docs.julialang.org/en/v1/manual/performance-tips/#Write-%22type-stable%22-functions-1),
they should also preserve the type of their inputs.
A very artificial example using an activatioon function like
A very artificial example using an activation function like
```
my_tanh(x) = Float64(tanh(x))
@ -73,4 +73,4 @@ end
```
When doing this kind of concatenation use `reduce(hcat, xs)` rather than `hcat(xs...)`.
This will avoid the splatting penality, and will hit the optimised `reduce` method.
This will avoid the splatting penalty, and will hit the optimised `reduce` method.