Note
This page is a reference documentation. It only explains the class signature, and not how to use it. Please refer to the user guide for the big picture.
nidl.volume.backbones.AlexNet¶
- class nidl.volume.backbones.AlexNet(n_embedding=128, in_channels=1)[source]¶
Bases:
Module3D AlexNet architecture adapted from Abrol et al., 2021. See https://doi.org/10.5281/zenodo.4309677 for details.
- Parameters:
- n_embedding: int, default=128
the size of the embedding space.
- in_channels: int, default=1
the number of input channels.
Notes
Small adaptation for representation learning: the final regressor head is replaced by simple linear layer.
- __init__(n_embedding=128, in_channels=1)[source]¶
Initialize internal Module state, shared by both nn.Module and ScriptModule.
- 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
Moduleinstance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.