MCPcopy Create free account
hub / github.com/pytorch/executorch / __call__

Method __call__

exir/backend/utils.py:579–582  ·  view source on GitHub ↗
(self, node: torch.fx.Node, reason: str)

Source from the content-addressed store, hash-verified

577 self.reason: str = ""
578
579 def __call__(self, node: torch.fx.Node, reason: str) -> None:
580 self.node = node
581 self.reason = reason
582 self.logger.debug(self)
583
584 def __str__(self) -> str:
585 return f"WhyNoPartition: Node {self.node} was not partitioned because {self.reason}."

Callers

nothing calls this directly

Calls 1

debugMethod · 0.80

Tested by

no test coverage detected