Expand description
Peer-class metadata for partitioning by “what kind of Node does
this op run on.” PEER_CLASS_KEY tags Output<PeerId>
producers; HOME_CLASS_KEY tags each NodeProto with the class
of Node it runs on (stamped by infer_peer_classes).
Constants§
- HOME_
CLASS_ KEY - Class of Node a
NodeProtoruns on. Stamped byinfer_peer_classes; partition keys + cross-class detection consume it. - PEER_
CLASS_ KEY - Class of peer an
Output<PeerId>producer yields. Stamped onValueInfoProto(Graph::input) orNodeProto(frontend). - SELF_
CLASS - Sentinel for ops whose data inputs all originate on the local
Node. Function inputs start here;
wire.Sendre-homes downstream.
Functions§
- home_
class_ of_ node - Read
home_classoff aNodeProto.Nonefor unvisited nodes; partition falls back toSELF_CLASS. - peer_
class_ of_ node - Read
peer_classoff aNodeProto.Noneif absent. - peer_
class_ of_ value_ info - Read
peer_classoff aValueInfoProto.Noneif absent.