Skip to content

No softmax in densenet #1520

@grudloff

Description

@grudloff

I was checking the implementation of densenet and I noticed that the class layers, defined as:

  self.class_layers = nn.Sequential(
      OrderedDict(
          [
              ("relu", get_act_layer(name=act)),
              ("pool", avg_pool_type(1)),
              ("flatten", nn.Flatten(1)),
              ("out", nn.Linear(in_channels, out_channels)),
          ]

There is no softmax in the output, and I find this odd. Am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions