pyro-ppl / funsor

Functional tensors for probabilistic programming
https://funsor.pyro.ai
Apache License 2.0
236 stars 20 forks source link

Add Constant.align method #558

Closed ordabayevy closed 3 years ago

ordabayevy commented 3 years ago

This aligns Constant.arg with names[len(self.const_inputs):] given that Constant.const_inputs is aligned with names[:len(self.const_inputs)].