Skip to content
Snippets Groups Projects
Commit ac8e2c28 authored by Engin Eren's avatar Engin Eren
Browse files

dimension error fixed

parent fb6a56d4
No related branches found
No related tags found
1 merge request!43crit peter
Pipeline #4286669 passed
......@@ -242,7 +242,7 @@ def train(args, aDE, aDH, aD_H_E, aGE, aGH, device, train_loader, optimizer_d_E,
fake_ecal = fake_ecal.unsqueeze(1).detach()
z = Variable(Tensor(np.random.uniform(-1, 1, (args.batch_size, args.nz))), requires_grad=True)
fake_dataHCAL = aGH(z, label.view(-1, 1, 1, 1, 1), fake_ecal) ## 48 x 30 x 30
fake_dataHCAL = aGH(z, label, fake_ecal) ## 48 x 30 x 30
fake_dataHCAL = fake_dataHCAL.unsqueeze(1)
## Loss function for ECAL generator
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment