/
Gen.jl
66 lines (45 loc) · 1.45 KB
/
Gen.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#__precompile__(false)
module Gen
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
end
export load_generated_functions
# built-in extensions to the reverse mode AD
include("backprop.jl")
# addresses and address selections
include("address.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")
# generative function interface
include("gen_fn_interface.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")
# utilities for parsing
include("dsl_common.jl")
# optimization of trainable parameters
include("optimization.jl")
# dynamic embedded generative function
include("dynamic/dynamic.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")
# injective function DSL (not currently documented)
include("injective.jl")
# selection DSL (not currently documented)
include("selection.jl")
# inference and learning library
include("inference/inference.jl")
end # module Gen