This commit is contained in:
Mike J Innes 2016-10-30 10:54:55 +00:00
parent a1b1d87767
commit ec1950b466

View File

@ -9,6 +9,7 @@ cvalue(v::Vertex) = cvalue(value(v))
graph(x::Tensor) = x
graph(::typeof(*), args...) = *(args...)
graph(::typeof(.*), args...) = .*(args...)
graph(::typeof(+), args...) = +(args...)
graph(::typeof(softmax), x) = nn.softmax(x)
graph(::typeof(relu), x) = nn.relu(x)