tf flatten

This commit is contained in:
Mike J Innes 2016-10-04 22:50:20 +01:00
parent bf04b70ad1
commit 45d30312b6

View File

@ -36,6 +36,7 @@ graph(::typeof(+), args...) = +(args...)
graph(::typeof(softmax), x) = nn.softmax(x) graph(::typeof(softmax), x) = nn.softmax(x)
graph(::typeof(relu), x) = nn.relu(x) graph(::typeof(relu), x) = nn.relu(x)
graph(::typeof(tanh), x) = tanh(x) graph(::typeof(tanh), x) = tanh(x)
graph(::typeof(flatten), x) = reshape(x, [-1])
graph(::Input, x) = x graph(::Input, x) = x