Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More fully quote generated code for static IR
- Loading branch information
Showing
11 changed files
with
315 additions
and
302 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,66 @@ | ||
#__precompile__(false) | ||
|
||
module Gen | ||
|
||
const generated_functions = [] | ||
function load_generated_functions() | ||
for function_defn in generated_functions | ||
Core.eval(Main, function_defn) | ||
end | ||
const generated_functions = [] | ||
|
||
""" | ||
load_generated_functions() | ||
Permit use of generative functions written in the static modeling language up to this point. | ||
""" | ||
function load_generated_functions() | ||
for function_defn in generated_functions | ||
Core.eval(Main, function_defn) | ||
end | ||
export generated_functions | ||
end | ||
|
||
export load_generated_functions | ||
|
||
# built-in extensions to the reverse mode AD | ||
include("backprop.jl") | ||
# built-in extensions to the reverse mode AD | ||
include("backprop.jl") | ||
|
||
# addresses and address selections | ||
include("address.jl") | ||
# addresses and address selections | ||
include("address.jl") | ||
|
||
# abstract and built-in concrete choice map data types | ||
include("choice_map.jl") | ||
# abstract and built-in concrete choice map data types | ||
include("choice_map.jl") | ||
|
||
# a homogeneous trie data type (not for use as choice map) | ||
include("trie.jl") | ||
# a homogeneous trie data type (not for use as choice map) | ||
include("trie.jl") | ||
|
||
# generative function interface | ||
include("gen_fn_interface.jl") | ||
# generative function interface | ||
include("gen_fn_interface.jl") | ||
|
||
# built-in data types for arg-diff and ret-diff values | ||
include("diff.jl") | ||
# built-in data types for arg-diff and ret-diff values | ||
include("diff.jl") | ||
|
||
# built-in probability disributions | ||
include("modeling_library/modeling_library.jl") | ||
# built-in probability disributions | ||
include("modeling_library/modeling_library.jl") | ||
|
||
# utilities for parsing | ||
include("dsl_common.jl") | ||
# utilities for parsing | ||
include("dsl_common.jl") | ||
|
||
# optimization of trainable parameters | ||
include("optimization.jl") | ||
# optimization of trainable parameters | ||
include("optimization.jl") | ||
|
||
# dynamic embedded generative function | ||
include("dynamic/dynamic.jl") | ||
# dynamic embedded generative function | ||
include("dynamic/dynamic.jl") | ||
|
||
# static IR generative function | ||
include("static_ir/static_ir.jl") | ||
# static IR generative function | ||
include("static_ir/static_ir.jl") | ||
|
||
# DSLs for defining dynamic embedded and static IR generative functions | ||
# 'Dynamic DSL' and 'Static DSL' | ||
include("dsl/dsl.jl") | ||
# DSLs for defining dynamic embedded and static IR generative functions | ||
# 'Dynamic DSL' and 'Static DSL' | ||
include("dsl/dsl.jl") | ||
|
||
# injective function DSL (not currently documented) | ||
include("injective.jl") | ||
# injective function DSL (not currently documented) | ||
include("injective.jl") | ||
|
||
# selection DSL (not currently documented) | ||
include("selection.jl") | ||
# selection DSL (not currently documented) | ||
include("selection.jl") | ||
|
||
# inference and learning library | ||
include("inference/inference.jl") | ||
# inference and learning library | ||
include("inference/inference.jl") | ||
|
||
end # module Gen |
Oops, something went wrong.