identity function
This commit is contained in:
parent
ba54552be5
commit
f5b0f3e530
@ -14,6 +14,7 @@ node(x::Number) = TensorFlow.constant(Float32(x))
|
||||
|
||||
graph(::typeof(tuple), args...) = (args...,)
|
||||
graph(s::Split, t::Tuple) = t[s.n]
|
||||
graph(::typeof(identity), x) = TensorFlow.identity(x)
|
||||
graph(::typeof(softmax), x) = nn.softmax(x)
|
||||
graph(::typeof(relu), x) = nn.relu(x)
|
||||
graph(::typeof(σ), x) = nn.sigmoid(x)
|
||||
|
Loading…
Reference in New Issue
Block a user