In this situation the Sequential was a submodule of another main module and the main module just used it as is, it didn't investigate if it is a collection that it should loop over - a common setup. Why use nn.Sequental at all? Why not loop through a Python list (or dict) of nn.Modules? I'm mostly worried whether there's some PyTorch composability feature we're lacking. Alternatively, we can explicitly support only dict and OrderedDict, knowing both of these will be ordered.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |