Sequential
Chain modules, calling each on the previous one's output.
class Sequential : Module— python/vkml/nn.py:324
Children are registered under their positional index, so a state_dict key reads 0.weight, 1.bias and so on — the same convention as torch, which is what lets a torch Sequential checkpoint load here.
Construction¶
__init__¶
def __init__self, *layers: Module— python/vkml/nn.py:325
Forward¶
forward¶
def forwardself, x: V.Tensor -> V.Tensor— python/vkml/nn.py:330