vkML 0.1.0

Flatten

Collapse every axis after the first into one.

class Flatten : Modulepython/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__

def __init__self, start_dim: int=1python/vkml/nn.py:588

Forward

forward

def forwardself, x: V.Tensor -> V.Tensorpython/vkml/nn.py:592

Other members

__repr__

def __repr__self -> strpython/vkml/nn.py:600

See also Sequential, Linear

vkML — Vulkan-first machine learning in C++20. Apache-2.0. Signatures on this page are generated from the installed module.