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.
- {hyper_connections-0.3.3 → hyper_connections-0.3.4}/PKG-INFO +1 -1
- {hyper_connections-0.3.3 → hyper_connections-0.3.4}/hyper_connections/manifold_constrained_hyper_connections.py +4 -2
- {hyper_connections-0.3.3 → hyper_connections-0.3.4}/pyproject.toml +1 -1
- {hyper_connections-0.3.3 → hyper_connections-0.3.4}/.github/workflows/python-publish.yml +0 -0
- {hyper_connections-0.3.3 → hyper_connections-0.3.4}/.github/workflows/test.yml +0 -0
- {hyper_connections-0.3.3 → hyper_connections-0.3.4}/.gitignore +0 -0
- {hyper_connections-0.3.3 → hyper_connections-0.3.4}/LICENSE +0 -0
- {hyper_connections-0.3.3 → hyper_connections-0.3.4}/README.md +0 -0
- {hyper_connections-0.3.3 → hyper_connections-0.3.4}/hyper-connections.png +0 -0
- {hyper_connections-0.3.3 → hyper_connections-0.3.4}/hyper_connections/__init__.py +0 -0
- {hyper_connections-0.3.3 → hyper_connections-0.3.4}/hyper_connections/hyper_connections.py +0 -0
- {hyper_connections-0.3.3 → hyper_connections-0.3.4}/hyper_connections/hyper_connections_channel_first.py +0 -0
- {hyper_connections-0.3.3 → hyper_connections-0.3.4}/hyper_connections/hyper_connections_with_multi_branch_inputs.py +0 -0
- {hyper_connections-0.3.3 → hyper_connections-0.3.4}/hyper_connections/hyper_connections_with_multi_input_streams.py +0 -0
- {hyper_connections-0.3.3 → hyper_connections-0.3.4}/hyper_connections/residuals.py +0 -0
- {hyper_connections-0.3.3 → hyper_connections-0.3.4}/tests/test_hyper_connections.py +0 -0
|
@@ -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):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|