pulsatrix 1.1.0
Loading...
Searching...
No Matches
pulsatrix::ResNetConfig Struct Reference

A torchvision ResNet with basic blocks (ResNet18 and ResNet34; ResNet18 is the one tested on the published weights). More...

#include <vision_models.hpp>

Public Attributes

std::vector< int64_t > blocks = {2, 2, 2, 2}
 Blocks per stage: {2, 2, 2, 2} is ResNet18, {3, 4, 6, 3} ResNet34.
 
int64_t width = 64
 The first stage's channels, doubled at each later stage (torchvision: 64).
 
int64_t num_classes = 1000
 
int64_t in_channels = 3
 

Detailed Description

A torchvision ResNet with basic blocks (ResNet18 and ResNet34; ResNet18 is the one tested on the published weights).

Member Data Documentation

◆ blocks

std::vector<int64_t> pulsatrix::ResNetConfig::blocks = {2, 2, 2, 2}

Blocks per stage: {2, 2, 2, 2} is ResNet18, {3, 4, 6, 3} ResNet34.

◆ in_channels

int64_t pulsatrix::ResNetConfig::in_channels = 3

◆ num_classes

int64_t pulsatrix::ResNetConfig::num_classes = 1000

◆ width

int64_t pulsatrix::ResNetConfig::width = 64

The first stage's channels, doubled at each later stage (torchvision: 64).


The documentation for this struct was generated from the following file: