StructStaticMetadata

StructStaticMetadata#

class penzai.core.struct.StructStaticMetadata[source]#

Bases: object

Container for a struct’s static fields.

Variables:
  • child_field_names (list[str]) – Names of all non-static fields in PyTree serialization order.

  • static_fields (dict[str, Any]) – Values for all fields that are not PyTree nodes.

Methods

__init__(child_field_names, static_fields)

Attributes

child_field_names

static_fields