resnet9
ResNet9
¶
Bases: Module
A 9-layer ResNet PyTorch model for cifar10 image classification. The model architecture is from https://github.com/davidcpage/cifar10-fast
Parameters:
Name | Type | Description | Default |
---|---|---|---|
input_size |
Tuple[int, int, int]
|
The size of the input tensor (channels, height, width). Both width and height of input_size should not be smaller than 16. |
(3, 32, 32)
|
classes |
int
|
The number of outputs. |
10
|
Raises:
Type | Description |
---|---|
ValueError
|
Length of |
ValueError
|
|
Source code in fastestimator/fastestimator/architecture/pytorch/resnet9.py
Residual
¶
Bases: Module
A two-layer unit for ResNet9. The output size is the same as input.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
channel |
Number of input channels. |
required |