HoistedTag

Contents

HoistedTag#

class penzai.data_effects.side_input.HoistedTag[source]#

Bases: object

A tag that has been hoisted out of a handler.

HoistedTag is used to indicate side inputs that used to be located in some other location in a tree and have been moved out of it by hoist_constant_side_inputs. This ensures that distinct side inputs with the same tag do not conflict.

Variables:
  • source (str) – A string representation of the place this tag was hoisted from.

  • tag (Tag) – The original tag.

Methods

__init__(source, tag)

Attributes

source

tag