Skip to content

Commit

Permalink
fix the build
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeInnes committed Jan 16, 2017
1 parent 271d06a commit d7fe525
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/compiler/shape.jl
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,3 @@ end

# TODO: make correct
infer(::typeof(+), a, b) = a
infer(::typeof(softmax), x) = x
infer(::typeof(σ), x) = x
3 changes: 3 additions & 0 deletions src/layers/activation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ softmax(xs) = exp.(xs) ./ sum(exp.(xs))
flatten(xs) = reshape(xs, length(xs))

shape(::typeof(flatten), in) = prod(in)

infer(::typeof(softmax), x) = x
infer(::typeof(σ), x) = x

0 comments on commit d7fe525

Please sign in to comment.