hyper-connections 0.3.3__tar.gz → 0.3.4__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.
Files changed (16) hide show
  1. {hyper_connections-0.3.3 → hyper_connections-0.3.4}/PKG-INFO +1 -1
  2. {hyper_connections-0.3.3 → hyper_connections-0.3.4}/hyper_connections/manifold_constrained_hyper_connections.py +4 -2
  3. {hyper_connections-0.3.3 → hyper_connections-0.3.4}/pyproject.toml +1 -1
  4. {hyper_connections-0.3.3 → hyper_connections-0.3.4}/.github/workflows/python-publish.yml +0 -0
  5. {hyper_connections-0.3.3 → hyper_connections-0.3.4}/.github/workflows/test.yml +0 -0
  6. {hyper_connections-0.3.3 → hyper_connections-0.3.4}/.gitignore +0 -0
  7. {hyper_connections-0.3.3 → hyper_connections-0.3.4}/LICENSE +0 -0
  8. {hyper_connections-0.3.3 → hyper_connections-0.3.4}/README.md +0 -0
  9. {hyper_connections-0.3.3 → hyper_connections-0.3.4}/hyper-connections.png +0 -0
  10. {hyper_connections-0.3.3 → hyper_connections-0.3.4}/hyper_connections/__init__.py +0 -0
  11. {hyper_connections-0.3.3 → hyper_connections-0.3.4}/hyper_connections/hyper_connections.py +0 -0
  12. {hyper_connections-0.3.3 → hyper_connections-0.3.4}/hyper_connections/hyper_connections_channel_first.py +0 -0
  13. {hyper_connections-0.3.3 → hyper_connections-0.3.4}/hyper_connections/hyper_connections_with_multi_branch_inputs.py +0 -0
  14. {hyper_connections-0.3.3 → hyper_connections-0.3.4}/hyper_connections/hyper_connections_with_multi_input_streams.py +0 -0
  15. {hyper_connections-0.3.3 → hyper_connections-0.3.4}/hyper_connections/residuals.py +0 -0
  16. {hyper_connections-0.3.3 → hyper_connections-0.3.4}/tests/test_hyper_connections.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hyper-connections
3
- Version: 0.3.3
3
+ Version: 0.3.4
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
@@ -91,13 +91,15 @@ def get_init_and_expand_reduce_stream_functions(
91
91
  num_fracs = 1,
92
92
  dim = None,
93
93
  add_stream_embed = False,
94
- disable = None
94
+ disable = None,
95
+ sinkhorn_iters = 20,
96
+ **kwargs
95
97
  ):
96
98
  disable = default(disable, num_streams == 1 and num_fracs == 1)
97
99
 
98
100
  hyper_conn_klass = ManifoldConstrainedHyperConnections if not disable else Residual
99
101
 
100
- init_hyper_conn_fn = partial(hyper_conn_klass, num_streams, num_fracs = num_fracs)
102
+ init_hyper_conn_fn = partial(hyper_conn_klass, num_streams, num_fracs = num_fracs, sinkhorn_iters = sinkhorn_iters, **kwargs)
101
103
  expand_reduce_fns = get_expand_reduce_stream_functions(num_streams, add_stream_embed = add_stream_embed, dim = dim, disable = disable)
102
104
 
103
105
  if exists(dim):
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "hyper-connections"
3
- version = "0.3.3"
3
+ version = "0.3.4"
4
4
  description = "Hyper-Connections"
5
5
  authors = [
6
6
  { name = "Phil Wang", email = "lucidrains@gmail.com" }