Flatten
Collapse every axis after the first into one.
class Flatten : Module— python/vkml/nn.py:581
A view, not a copy — it reshapes, so no data moves. Typically the join between a convolutional stack and a linear head.
Construction¶
__init__¶
Forward¶
forward¶
def forwardself, x: V.Tensor -> V.Tensor— python/vkml/nn.py:592
Other members¶
__repr__¶
See also Sequential, Linear