diff --git a/src/Flux.jl b/src/Flux.jl index 1cdb48a5..3223146c 100644 --- a/src/Flux.jl +++ b/src/Flux.jl @@ -16,9 +16,6 @@ export @net, unroll, unroll1, @shapes, # Zero Flux Given -include("core.jl") -import .FluxCore: graph - include("Tracker/Tracker.jl") using .Tracker diff --git a/src/compiler/code.jl b/src/compiler/code.jl index aa11be8c..2554fe63 100644 --- a/src/compiler/code.jl +++ b/src/compiler/code.jl @@ -1,6 +1,8 @@ import DataFlow: cse using MacroTools: @q, @> +graph(m) = nothing + function graphdef(ex, params = []) @capture(shortdef(ex), (args__,) -> body_) body = @> body MacroTools.flatten liftloops graphm DataFlow.il diff --git a/src/core.jl b/src/core.jl deleted file mode 100644 index 632b7aa6..00000000 --- a/src/core.jl +++ /dev/null @@ -1,14 +0,0 @@ -# This code is in a submodule with the intention that it will be split into an -# interface package. - -module FluxCore - -""" - graph(model) => ::IVertex{Any} | nothing - -Returns the graph representation of the model, if any. May be used for -compilation, generating symbolic gradients, etc. -""" -graph(m) = nothing - -end