Skip to content

Question: ARL module: BasicBlock——channel? #6

@HeConnor

Description

@HeConnor

Hello,
I felt confued about your BasicBlock module:

class BasicBlock(nn.Module):
    expansion = 1
    def __init__(self, inplanes, planes, stride=1, downsample=None, alpha =0.001):
        ...
    def forward(self, x):
        ...
        out = out + residual + self.alpha * attention * residual

if in_channels != out_channels, the last line can running?
residual: inplanes, out: planes

Looking forward to your reply. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions