Skip to content

Commit becc9f9

Browse files
Roman223Copilot
andauthored
Update wgan_gp/training.py
Redundant code removed Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent e221251 commit becc9f9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wgan_gp/training.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ def sample_from_tensor(tensor, n_samples):
458458
"""
459459
indices = torch.randperm(tensor.size(0))
460460
indices_trunc = indices[:n_samples]
461-
sampled_tensor = tensor[indices_trunc[:n_samples]]
461+
sampled_tensor = tensor[indices_trunc]
462462
return sampled_tensor
463463

464464
def calculate_mfs_torch(

0 commit comments

Comments
 (0)