hyper-connections 0.1.2__py3-none-any.whl → 0.1.5__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.
@@ -68,7 +68,6 @@ class RMSNorm(Module):
68
68
  # residual base class
69
69
 
70
70
  class Residual(Module):
71
- @beartype
72
71
  def __init__(
73
72
  self,
74
73
  *args,
@@ -119,7 +118,6 @@ class Residual(Module):
119
118
  # hyper connection residual streams
120
119
 
121
120
  class HyperConnections(Module):
122
- @beartype
123
121
  def __init__(
124
122
  self,
125
123
  num_residual_streams,
@@ -1,5 +1,5 @@
1
1
  from __future__ import annotations
2
- from typing import Callable
2
+ from typing import Callable, Union
3
3
 
4
4
  from functools import partial
5
5
  from random import randrange
@@ -142,7 +142,7 @@ class Residual(Module):
142
142
 
143
143
  # hyper connection with multiple input streams
144
144
 
145
- InputPathType = int | str # the path to the second residual stream, where `int` points to *args[`int`] and `str` points to **kwargs[`str`] - `int` needs to be > 0, as 0 is the default input residual stream
145
+ InputPathType = Union[int, str] # the path to the second residual stream, where `int` points to *args[`int`] and `str` points to **kwargs[`str`] - `int` needs to be > 0, as 0 is the default input residual stream
146
146
 
147
147
  class HyperConnections(Module):
148
148
  def __init__(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hyper-connections
3
- Version: 0.1.2
3
+ Version: 0.1.5
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
@@ -0,0 +1,8 @@
1
+ hyper_connections/__init__.py,sha256=d2zNTka0Gp9vINu4U-RhgTJFBhsVrs1fne_15Zl0oOs,224
2
+ hyper_connections/hyper_connections.py,sha256=uOSkFjpPECFiI_WUAXMxnsvYOYlEQXo_olzIL1Cc3sk,9934
3
+ hyper_connections/hyper_connections_with_multi_branch_inputs.py,sha256=N89RSjkTbaVs46XDfPv4F770PF0kCzkMcpEuxaT5A5M,7733
4
+ hyper_connections/hyper_connections_with_multi_input_streams.py,sha256=LR36AV2eqkgw0JB-lhkURDaCKh5I-NlQpMyzgncOMZU,11271
5
+ hyper_connections-0.1.5.dist-info/METADATA,sha256=Cv9KboxAAmca7etTzwv0zeUX9MYlaiG9kerf80a0pKs,5230
6
+ hyper_connections-0.1.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
7
+ hyper_connections-0.1.5.dist-info/licenses/LICENSE,sha256=E7RGS7kpJIStk5za_-4DVhWEAamf65EU0CNML25mq4c,1066
8
+ hyper_connections-0.1.5.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- hyper_connections/__init__.py,sha256=d2zNTka0Gp9vINu4U-RhgTJFBhsVrs1fne_15Zl0oOs,224
2
- hyper_connections/hyper_connections.py,sha256=r4h2M4FOd50SdnkB_JciKlL5Q_RZ4HHLfSZ7xl7EXrk,9962
3
- hyper_connections/hyper_connections_with_multi_branch_inputs.py,sha256=N89RSjkTbaVs46XDfPv4F770PF0kCzkMcpEuxaT5A5M,7733
4
- hyper_connections/hyper_connections_with_multi_input_streams.py,sha256=_IUkvbLdv6sj6Is2ayZ7APsMzW1DZS2mjAUznKAAVLU,11258
5
- hyper_connections-0.1.2.dist-info/METADATA,sha256=LgqrHIWtIsw_fqXJng4PNIb6yRc676_lNHJhehAhQjs,5230
6
- hyper_connections-0.1.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
7
- hyper_connections-0.1.2.dist-info/licenses/LICENSE,sha256=E7RGS7kpJIStk5za_-4DVhWEAamf65EU0CNML25mq4c,1066
8
- hyper_connections-0.1.2.dist-info/RECORD,,