Skip to content

please add some comments on these lines #1

@yorkerlin

Description

@yorkerlin

for s in range(self.num_samples):

See also:

loss = closure()

Make sure that the same mini-batch should be used here.
One way to achieve that is to use state['step'] as the seed of the random number generator for generating mini-batches. I did that in my Autograd implementation

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