qumphy.models.inception_mantas module

File: qumphy/models/inception_mantas.py Project: 22HLT01 QUMPHY Contact: oskar.pfeffer@ptb.de Gitlab: https://gitlab.com/qumphy Description: Inception model, adapted from Matlab code from KTU.

class qumphy.models.inception_mantas.Inception1DBlock(in_channels)[source]

Bases: Module

Single Inception block

Branch 1: 1x1 conv Branch 2: 1x1 conv -> 3x1 conv Branch 3: 1x1 conv -> 5x1 conv Branch 4: 3x1 maxpool -> 1x1 conv

forward(x)[source]

Define the computation performed at every call.

Should be overridden by all subclasses.

Note

Although the recipe for forward pass needs to be defined within this function, one should call the Module instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.

class qumphy.models.inception_mantas.Inception1DNet(in_channels, num_classes)[source]

Bases: Module

forward(x)[source]

x shape: (Batch_size, Channels, Length)