x-evolution 0.1.16__tar.gz → 0.1.17__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: x-evolution
3
- Version: 0.1.16
3
+ Version: 0.1.17
4
4
  Summary: x-evolution
5
5
  Project-URL: Homepage, https://pypi.org/project/x-evolution/
6
6
  Project-URL: Repository, https://github.com/lucidrains/x-evolution
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "x-evolution"
3
- version = "0.1.16"
3
+ version = "0.1.17"
4
4
  description = "x-evolution"
5
5
  authors = [
6
6
  { name = "Phil Wang", email = "lucidrains@gmail.com" }
@@ -6,7 +6,7 @@ from pathlib import Path
6
6
  from functools import partial
7
7
 
8
8
  import torch
9
- from torch import tensor, Tensor, is_tensor, arange, randint
9
+ from torch import tensor, Tensor, stack, is_tensor, arange, randint
10
10
  from torch.nn import Module, ModuleList, Parameter, ParameterList
11
11
  from torch.optim import SGD, Adam, Optimizer
12
12
  from torch.optim.lr_scheduler import LRScheduler
@@ -367,8 +367,10 @@ class EvoStrategy(Module):
367
367
  filename = 'evolved.model',
368
368
  num_generations = None,
369
369
  disable_distributed = False,
370
- rollback_model_at_end = False
370
+ rollback_model_at_end = False,
371
+ verbose = None
371
372
  ):
373
+ verbose = default(verbose, self.verbose)
372
374
 
373
375
  model = self.noisable_model.to(self.device)
374
376
 
@@ -553,4 +555,4 @@ class EvoStrategy(Module):
553
555
  # return fitnesses across generations
554
556
  # for meta-evolutionary (nesting EvoStrategy within the environment of another and optimizing some meta-network)
555
557
 
556
- return fitnesses_across_generations
558
+ return stack(fitnesses_across_generations)
File without changes
File without changes
File without changes
File without changes