目录
1.官方文档解释
1.1原文参照
A sequential container. Modules will be added to it in the order they are passed in the constructor. Alternatively, an of modules can be passed in. The method of accepts any input and forwards it to the first module it contains. It then “chains” outputs to inputs sequentially for each subsequent module, finally returning the output of the last module.
OrderedDictforward()SequentialThe value a provides over manually calling a sequence of modules is that it allows treating the whole container as a single module, such that performing a transformation on the applies to each of the modules it stores (which are each a registered submodule of the ).
SequentialSequentialSequential
PyTorch中的Sequential容器与模块组装

最低0.47元/天 解锁文章
218

被折叠的 条评论
为什么被折叠?



