Skip to content

sampling_model parameters update #149

@gcrth

Description

@gcrth

I am not sure if this is really a problem. There is a line

b.data.mul_(self.sampling_tau).add_(a.data * (1 - self.sampling_tau))
. If there are multiple workers in the dataloader, updating parameters like this may not be thread safe since sampling_model is used during the training data generation. I assume some kind of lock may be needed.

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