b87368e1e7fd832b505db9cc08015ac7af8f95de,VAE/main.py,,,#,87

Before Change


TEST_BATCH_SIZE = 1000
NUM_EPOCHS = 2

optimizer = optim.Adam(model.parameters(), lr=1e-3)


def train(epoch):
    batch_data_t = torch.FloatTensor(BATCH_SIZE, 784)

After Change


    print("====> Test set results: {:.4f}".format(test_loss))


for epoch in range(1, NUM_EPOCHS + 1):
    train(epoch)
    test(epoch)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 11

Instances


Project Name: OpenNMT/OpenNMT-py
Commit Name: b87368e1e7fd832b505db9cc08015ac7af8f95de
Time: 2016-12-23
Author: jvanamersfoort@twitter.com
File Name: VAE/main.py
Class Name:
Method Name:


Project Name: pytorch/examples
Commit Name: 963f7d1777cd20af3be30df40633356ba82a6b0c
Time: 2018-02-02
Author: Kaixhin@users.noreply.github.com
File Name: vae/main.py
Class Name:
Method Name:


Project Name: pytorch/examples
Commit Name: b87368e1e7fd832b505db9cc08015ac7af8f95de
Time: 2016-12-23
Author: jvanamersfoort@twitter.com
File Name: VAE/main.py
Class Name:
Method Name: