The problem is that the smooth function defaults to setting input=None but then later, in self.forward we try to index into the input. Should be an easy fix: we can either redefine forward so that it doesn't require input to be an array, or we could make a dummy input that's all zeros.
I ran into this with Poisson emissions, but I'd guess it would crop up other places as well.
The following doesn't work with poisson emissions:
The problem is that the smooth function defaults to setting
input=None
but then later, inself.forward
we try to index into the input. Should be an easy fix: we can either redefine forward so that it doesn't require input to be an array, or we could make a dummy input that's all zeros.I ran into this with Poisson emissions, but I'd guess it would crop up other places as well.