@ramsamy Sorry I made a mistake in my original answer, please make sure you are using  module->as<Linear>()(x) instead of module->as<Linear>()->forward(x), otherwise module hooks (to be implemented) won’t work