Skip to content

Module torchlayers has no attribute L1 #14

@chrislemke

Description

@chrislemke

Hey!
I have the following issue.

Using Python 3.9.7 and torchlayers 0.1.1.

Trying to do this:

import torchlayers as tl

        # Regularize all parameters of Linear module
        regularized_layer = tl.L1(tl.Linear(30), weight_decay=1e-5

From here.

Unfortunately, I am getting this:

AttributeError: module torchlayers has no attribute L1

If I inspect torchlayers.regularization it does not contain L1. 🤔

Any idea? Thanks in advance.

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