MCPcopy Create free account
hub / github.com/google-deepmind/alphageometry / fn

Function fn

transformer_layer.py:48–49  ·  view source on GitHub ↗
(array: Array, idx: Array)

Source from the content-addressed store, hash-verified

46def slice_in_dim_1(window_length: int) -> Callable[[Array, Array], Array]:
47 @jax.vmap
48 def fn(array: Array, idx: Array) -> Array:
49 return jax.lax.dynamic_slice_in_dim(array, idx, window_length, axis=0)
50
51 return fn
52

Callers 2

apply_on_cacheFunction · 0.85
try_to_sketch_intersectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected