Skip to content

Bug about your IMTL code #2

@ZZX-11

Description

@ZZX-11

I think your IMTL code have bug.
if follow your code : parameters = itertools.chain(model.parameters(), IMTL.parameters())
and run list(IMTL.parameters()) will get a empty list. Also, after optimizer.step(), the s_t will not update.
image

The problem comes from you not initial self.register_parameter('s_t',nn.Parameter(torch.ones(self.num_losses+1).squeeze(),requires_grad=True))
in the init() function, therefore optimizer will not update s_t
I have changed your code like this :

image

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingquestionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions