Skip to content

Commit

Permalink
Use elementwise shift instead of elementwise affine in default LRS ar…
Browse files Browse the repository at this point in the history
…chitecture
  • Loading branch information
davidnabergoj committed Nov 14, 2023
1 parent f4805e9 commit 02f88ba
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,13 @@ class MaskedAutoregressiveLRS(BijectiveComposition):
def __init__(self, event_shape, n_layers: int = 2, **kwargs):
if isinstance(event_shape, int):
event_shape = (event_shape,)
bijections = [ElementwiseAffine(event_shape=event_shape)]
bijections = [ElementwiseShift(event_shape=event_shape)]
for _ in range(n_layers):
bijections.extend([
ReversePermutation(event_shape=event_shape),
LRSForwardMaskedAutoregressive(event_shape=event_shape)
])
bijections.append(ElementwiseAffine(event_shape=event_shape))
bijections.append(ElementwiseShift(event_shape=event_shape))
super().__init__(event_shape, bijections, **kwargs)


Expand Down

0 comments on commit 02f88ba

Please sign in to comment.