Static

Contents

Static#

class brainstate.graph.Static(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 (TypeVar(A)) – The static payload.