hyper-connections 0.3.10__py3-none-any.whl → 0.3.11__py3-none-any.whl

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.
@@ -371,8 +371,6 @@ class ManifoldConstrainedHyperConnections(Module):
371
371
  if self.add_branch_out_to_residual:
372
372
  dc_weight = normed @ self.dynamic_beta_fn.float()
373
373
 
374
- dc_weight = dc_weight.sigmoid() * 2 # sigmoid * 2 for "H_post", corresponding to dc weight in original paper
375
-
376
374
  if not self.has_fracs:
377
375
  dc_weight = rearrange(dc_weight, '... -> ... 1')
378
376
 
@@ -382,6 +380,8 @@ class ManifoldConstrainedHyperConnections(Module):
382
380
 
383
381
  beta = dynamic_beta + static_beta
384
382
 
383
+ beta = beta.sigmoid() * 2 # for "H_post" manifold constraint
384
+
385
385
  mix_h = einsum(alpha, residuals.float(), '... f1 s f2 t, ... f1 s d -> ... f2 t d')
386
386
 
387
387
  if self.num_input_views == 1:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hyper-connections
3
- Version: 0.3.10
3
+ Version: 0.3.11
4
4
  Summary: Hyper-Connections
5
5
  Project-URL: Homepage, https://pypi.org/project/hyper-connections/
6
6
  Project-URL: Repository, https://github.com/lucidrains/hyper-connections
@@ -3,10 +3,10 @@ hyper_connections/hyper_connections.py,sha256=rqFJj3U0LF3uDKNKNPBpRrmf0oa2BGWVbD
3
3
  hyper_connections/hyper_connections_channel_first.py,sha256=Mh_hzhTi96ZoOPmhSKwUaF4TbHpNqhs83wNe5hNuL7o,6532
4
4
  hyper_connections/hyper_connections_with_multi_branch_inputs.py,sha256=6BXKdSwyx6wdQVseebKG2EQkhVaVLrrepOlL8lLnex4,7855
5
5
  hyper_connections/hyper_connections_with_multi_input_streams.py,sha256=ueT3CJPHrt5hRU7q1bFF0rANWJh_pXqclt6HiUu1gBY,11331
6
- hyper_connections/manifold_constrained_hyper_connections.py,sha256=SkGAWpBHnrOlIcixb0iIGej9StO82O7KXrFjYuSKx7I,17424
6
+ hyper_connections/manifold_constrained_hyper_connections.py,sha256=u_yeGVdPCMvZnPzj3cM_Kfo0XoZRChU4z-qL8oIKnRQ,17376
7
7
  hyper_connections/residuals.py,sha256=JVSFJj_H7xQ3_Fd-pZH5Hdv9SveAQu29jQNvMyom5ek,921
8
8
  hyper_connections/vit.py,sha256=fTC8hAYkD4qm-KURAj8SJ66C6ZWtsBdHf_kS-4rJZGQ,5049
9
- hyper_connections-0.3.10.dist-info/METADATA,sha256=tEYVvFTVY_13gYQbflz-mjWMQEwH4DvPvQk76X9Iq2E,6705
10
- hyper_connections-0.3.10.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
11
- hyper_connections-0.3.10.dist-info/licenses/LICENSE,sha256=E7RGS7kpJIStk5za_-4DVhWEAamf65EU0CNML25mq4c,1066
12
- hyper_connections-0.3.10.dist-info/RECORD,,
9
+ hyper_connections-0.3.11.dist-info/METADATA,sha256=HPZFYGNNJENlhuSEdKAdUUPEBaQ88ikkwViItlZtBHs,6705
10
+ hyper_connections-0.3.11.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
11
+ hyper_connections-0.3.11.dist-info/licenses/LICENSE,sha256=E7RGS7kpJIStk5za_-4DVhWEAamf65EU0CNML25mq4c,1066
12
+ hyper_connections-0.3.11.dist-info/RECORD,,