Static

Contents

Static#

class brainstate.graph.Static[A](value)[source]#

An empty pytree node that treats its inner value as static.

Wrap a value in Static to carry it through graph flattening as static metadata (no leaves). value must define __eq__ and __hash__.

Parameters:

value (A) – The static payload.