`Roost.forward()` and `Wren.forward()` return type tuple or generator?
Closed this issue · 2 comments
janosh commented
Going through the codebase to add type hints reminded me that I meant to ask if the return type Generator[Tensor, None, None]
for Roost.forward()
and Wren.forward()
is intended?
Lines 86 to 97 in 5d1d7db
If the type should be tuple[Tensor]
instead, we'd need to change to
return tuple(output_nn(crys_fea) for output_nn in self.output_nns)
CompRhys commented
Can't think of any benefit to it being a generator so maybe best to make it a tuple?
janosh commented
Agreed.