Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicBlockModule ¶
type BasicBlockModule struct { nn.Module C1, C2 *nn.Conv2dModule BN1, BN2 *nn.BatchNorm2dModule Downsample *nn.SequentialModule }
BasicBlockModule struct
func BasicBlock ¶
func BasicBlock(inplanes, planes, stride int64, downsample *nn.SequentialModule, groups, baseWidth, dilation int64) *BasicBlockModule
BasicBlock returns a BasicBlockModule instance
type BottleneckModule ¶
type BottleneckModule struct { nn.Module C1, C2, C3 *nn.Conv2dModule BN1, BN2, BN3 *nn.BatchNorm2dModule Downsample *nn.SequentialModule }
BottleneckModule struct
func Bottleneck ¶
func Bottleneck(inplanes, planes, stride int64, downsample *nn.SequentialModule, groups, baseWidth, dilation int64) *BottleneckModule
Bottleneck returns a BottleneckModule instance
type MLPModule ¶
type MLPModule struct { nn.Module FC1, FC2, FC3 *nn.LinearModule }
MLPModule represent a multilayer perceptron network
type ResnetModule ¶
type ResnetModule struct { nn.Module C1 *nn.Conv2dModule BN1 *nn.BatchNorm2dModule L1, L2, L3, L4 *nn.SequentialModule FC *nn.LinearModule Block reflect.Type Inplanes, Groups, BaseWidth, Dilation int64 }
ResnetModule struct
Click to show internal directories.
Click to hide internal directories.