File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 105105
106106 - 0: sum-product
107107 - 1: min-sum (introduced in 0.4.0)
108- - 2: min-sum+mem (uniform memory strength, introduced in 0.5.0)
109- - 3: min-sum+dmem (disordered memory strength, introduced in 0.5.0)
108+ - 2: min-sum+mem (uniform memory strength, requires ` use_sparsity=True `. Introduced in 0.5.0)
109+ - 3: min-sum+dmem (disordered memory strength, requires ` use_sparsity=True `. Introduced in 0.5.0)
110110 - `composition ` (int): Iteration strategy (defaults to 0). Introduced in 0.5.0:
111111
112112 - 0: Standard (single run)
113- - 1: Sequential relay (multiple gamma legs). Requires: `bp_method=3 `, `srelay_config `
113+ - 1: Sequential relay (multiple gamma legs). Requires: `bp_method=3 `, `use_sparsity=True `, and ` srelay_config `
114114 - `scale_factor ` (float): The scale factor to use for min-sum. Defaults to 1.0.
115115 When set to 0.0, the scale factor is dynamically computed based on the
116116 number of iterations. Introduced in 0.4.0.
Original file line number Diff line number Diff line change @@ -243,6 +243,7 @@ def demonstrate_bp_methods():
243243 H ,
244244 bp_method = 2 ,
245245 max_iterations = 30 ,
246+ use_sparsity = True ,
246247 gamma0 = 0.5 )
247248 print (" Created decoder with Mem-BP (gamma0=0.5)" )
248249
@@ -253,6 +254,7 @@ def demonstrate_bp_methods():
253254 H ,
254255 bp_method = 3 ,
255256 max_iterations = 30 ,
257+ use_sparsity = True ,
256258 gamma_dist = [0.1 , 0.5 ],
257259 bp_seed = 42 )
258260 print (" Created decoder with DMem-BP (gamma_dist=[0.1, 0.5])" )
@@ -264,6 +266,7 @@ def demonstrate_bp_methods():
264266 H ,
265267 bp_method = 3 ,
266268 max_iterations = 30 ,
269+ use_sparsity = True ,
267270 explicit_gammas = explicit_gammas )
268271 print (" Created decoder with DMem-BP (explicit gammas)" )
269272
@@ -284,6 +287,7 @@ def demonstrate_bp_methods():
284287 bp_method = 3 ,
285288 composition = 1 ,
286289 max_iterations = 50 ,
290+ use_sparsity = True ,
287291 gamma0 = 0.3 ,
288292 gamma_dist = [0.1 , 0.5 ],
289293 srelay_config = srelay_config ,
@@ -310,6 +314,7 @@ def demonstrate_bp_methods():
310314 bp_method = 3 ,
311315 composition = 1 ,
312316 max_iterations = 50 ,
317+ use_sparsity = True ,
313318 gamma0 = 0.3 ,
314319 explicit_gammas = explicit_relay_gammas ,
315320 srelay_config = srelay_config_all )
@@ -328,6 +333,7 @@ def demonstrate_bp_methods():
328333 bp_method = 3 ,
329334 composition = 1 ,
330335 max_iterations = 50 ,
336+ use_sparsity = True ,
331337 gamma0 = 0.3 ,
332338 gamma_dist = [0.1 , 0.6 ],
333339 srelay_config = srelay_config_nconv ,
You can’t perform that action at this time.
0 commit comments