Skip to content

In the forward function of CombinatorialMutationsLossModule, is it correct to randomly initialize nn.Conv2D every time op == 'concat'? #3

@Luious-LYH

Description

@Luious-LYH

conv = nn.Conv2d(cat.size(1), self.num_classes, kernel_size=1).to(device)

def forward(.....):
......
elif op == 'concat':
cat = torch.cat([output_maps[c] for c in comb], dim=1)
conv = nn.Conv2d(cat.size(1), self.num_classes, kernel_size=1).to(device) # Is it correct to randomly initialize?
mutated = conv(cat)

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