Deeploy.CommonExtensions.OptimizationPasses.Matchers.Match

class Deeploy.CommonExtensions.OptimizationPasses.Matchers.Match(anchor, nodes_map)

Bases: NamedTuple

Methods

__init__()

__init__()

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Attributes

anchor

Alias for field number 0

nodes_map

Alias for field number 1

anchor: Node

Alias for field number 0

nodes_map: Dict[str, Node]

Alias for field number 1

count(value, /)

Return number of occurrences of value.

index(value, start=0, stop=9223372036854775807, /)

Return first index of value.

Raises ValueError if the value is not present.