Skip to content

How to avoid weight close to zero? #3

Description

@shanshuo

Thanks for your elegant code. I've got a question about the output weight. Though sigmoid function could output a non-zero vector.

return torch.sigmoid(x)
But the weight vector's elements could be all close to zero, leading to a small loss.
loss = torch.mean(weight * loss_vector_reshape)
How could we avoid this?

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