This method seems not to work with a ModuleList of nn::Sequential. Is it possible to use nn::Sequential in the ModuleList, and if it is, then how to code the forward?
=============
EDIT:
Just found out, that
module->as<nn::Sequential>()->forward(x)
is working fine. However module->as<nn::Sequential>()(x) throws a compile-time error