Skip to content

Handle transposed variables properly in atoms #121

Description

@pratikrathore8

Right now, transposed variables in atoms lead to the atom being designated as not being proxable. A good example of this is doing something like

from rlaopt.atoms import NucNorm
from rlaopt.expression import Variable

x = Variable(torch.randn(2, 3))
nuc_norm = NucNorm(x.T)
nuc_norm.is_proxable()

This should be fixed -- transposing a variable should not affect proxability!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions