dreamer4 0.0.79__tar.gz → 0.0.80__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.

Potentially problematic release.


This version of dreamer4 might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dreamer4
3
- Version: 0.0.79
3
+ Version: 0.0.80
4
4
  Summary: Dreamer 4
5
5
  Project-URL: Homepage, https://pypi.org/project/dreamer4/
6
6
  Project-URL: Repository, https://github.com/lucidrains/dreamer4
@@ -2244,10 +2244,11 @@ class DynamicsWorldModel(Module):
2244
2244
  if not exists(experience.is_truncated):
2245
2245
  experience.is_truncated = full((batch,), True, device = latents.device)
2246
2246
 
2247
- mask_for_gae = lens_to_mask(experience.lens, time)
2247
+ if exists(experience.lens):
2248
+ mask_for_gae = lens_to_mask(experience.lens, time)
2248
2249
 
2249
- rewards = rewards.masked_fill(mask_for_gae, 0.)
2250
- old_values = old_values.masked_fill(mask_for_gae, 0.)
2250
+ rewards = rewards.masked_fill(mask_for_gae, 0.)
2251
+ old_values = old_values.masked_fill(mask_for_gae, 0.)
2251
2252
 
2252
2253
  # calculate returns
2253
2254
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "dreamer4"
3
- version = "0.0.79"
3
+ version = "0.0.80"
4
4
  description = "Dreamer 4"
5
5
  authors = [
6
6
  { name = "Phil Wang", email = "lucidrains@gmail.com" }
File without changes
File without changes
File without changes
File without changes
File without changes