(self)
| 112 | return self.exec_type != "deterministic" |
| 113 | |
| 114 | def to_dict(self) -> dict: |
| 115 | d: dict = { |
| 116 | "id": self.id, "name": self.name, "step_type": self.step_type, |
| 117 | "reads": [r.to_dict() for r in self.reads], |
| 118 | "writes": [w.to_dict() for w in self.writes], |
| 119 | } |
| 120 | if self.instruction is not None: |
| 121 | d["instruction"] = self.instruction |
| 122 | if self.submodule_ref is not None: |
| 123 | d["submodule_ref"] = self.submodule_ref.to_dict() |
| 124 | return d |
| 125 | |
| 126 | @staticmethod |
| 127 | def from_dict(d: dict) -> "NodeIR": |