Skip to content

Commit e54c5e4

Browse files
committed
initial tests, updated init and build
1 parent 57a4be0 commit e54c5e4

File tree

3 files changed

+387
-0
lines changed

3 files changed

+387
-0
lines changed

tensorflow_probability/python/experimental/vi/BUILD

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ py_library(
3131
srcs_version = "PY3",
3232
deps = [
3333
":automatic_structured_vi",
34+
":cascading_flows",
3435
":surrogate_posteriors",
3536
"//tensorflow_probability/python/experimental/vi/util",
3637
"//tensorflow_probability/python/internal:all_util",
@@ -67,6 +68,37 @@ py_library(
6768
],
6869
)
6970

71+
py_library(
72+
name = "cascading_flows",
73+
srcs = ["cascading_flows.py.py"],
74+
srcs_version = "PY3",
75+
deps = [
76+
# tensorflow dep,
77+
78+
"//tensorflow_probability/python/bijectors:build_highway_flow_layer",
79+
"//tensorflow_probability/python/bijectors:chain",
80+
"//tensorflow_probability/python/bijectors:reshape",
81+
"//tensorflow_probability/python/bijectors:scale",
82+
"//tensorflow_probability/python/bijectors:shift",
83+
"//tensorflow_probability/python/bijectors:split",
84+
"//tensorflow_probability/python/distributions:batch_broadcast",
85+
"//tensorflow_probability/python/distributions:beta",
86+
"//tensorflow_probability/python/distributions:blockwise",
87+
"//tensorflow_probability/python/distributions:chi2",
88+
"//tensorflow_probability/python/distributions:exponential",
89+
"//tensorflow_probability/python/distributions:gamma",
90+
"//tensorflow_probability/python/distributions:half_normal",
91+
"//tensorflow_probability/python/distributions:joint_distribution_auto_batched",
92+
"//tensorflow_probability/python/distributions:joint_distribution_coroutine",
93+
"//tensorflow_probability/python/distributions:normal",
94+
"//tensorflow_probability/python/distributions:sample",
95+
"//tensorflow_probability/python/distributions:transformed_distribution",
96+
"//tensorflow_probability/python/distributions:truncated_normal",
97+
"//tensorflow_probability/python/distributions:uniform",
98+
"//tensorflow_probability/python/internal:samplers",
99+
],
100+
)
101+
70102
py_library(
71103
name = "surrogate_posteriors",
72104
srcs = ["surrogate_posteriors.py"],

tensorflow_probability/python/experimental/vi/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
'build_affine_surrogate_posterior',
3030
'build_affine_surrogate_posterior_from_base_distribution',
3131
'build_asvi_surrogate_posterior',
32+
'builf_cf_surrogate_posterior'
3233
'build_factored_surrogate_posterior',
3334
'build_split_flow_surrogate_posterior',
3435
'build_trainable_location_scale_distribution',

0 commit comments

Comments
 (0)