Make hub_utils.generator inherit from nn.Module
Make hub_utils.generator inherit from nn.Module

Summary: Pull Request resolved: https://github.com/pytorch/fairseq/pull/913

Differential Revision: D16536562

Pulled By: myleott

fbshipit-source-id: ce28642da6868ec884e3e416388a652977a062df

pytorch/fairseq,pytorch/fairseq,pytorch/fairseq