MCPcopy
hub / github.com/google-deepmind/alphafold / split

Method split

alphafold/model/prng.py:44–48  ·  view source on GitHub ↗
(self, num_keys=2)

Source from the content-addressed store, hash-verified

42 return self._key
43
44 def split(self, num_keys=2):
45 self._assert_not_used()
46 self._used = True
47 new_keys = jax.random.split(self._key, num_keys)
48 return jax.tree_map(SafeKey, tuple(new_keys))
49
50 def duplicate(self, num_keys=2):
51 self._assert_not_used()

Callers 15

__call__Method · 0.95
__call__Method · 0.95
test_key_reuseMethod · 0.95
__call__Method · 0.95
__call__Method · 0.95
__call__Method · 0.95
__call__Method · 0.95
flat_params_to_haikuFunction · 0.80
__call__Method · 0.80
generate_monomer_rigidsFunction · 0.80
_slice_layers_paramsFunction · 0.80

Calls 1

_assert_not_usedMethod · 0.95

Tested by 8

test_key_reuseMethod · 0.76
_slice_layers_paramsFunction · 0.64
test_randomMethod · 0.64
test_nested_stacksMethod · 0.64
test_double_coverMethod · 0.64
test_homomorphismMethod · 0.64
test_batchingMethod · 0.64