(self, var: Variable)
| 823 | self.inputs[var_name] = self.variables[var_name] |
| 824 | |
| 825 | def mark_variable_as_graph_output(self, var: Variable): |
| 826 | if not isinstance(var, Variable): |
| 827 | raise TypeError(f'Except a variable here, however {type(var)} was given.') |
| 828 | var_name = var.name |
| 829 | if var_name not in self.variables: |
| 830 | raise KeyError(f'Can not find variable {var_name} within current graph.') |
| 831 | if var_name in self.outputs: return |
| 832 | self.outputs[var_name] = self.variables[var_name] |
| 833 | |
| 834 | def __getstate__(self) -> dict: |
| 835 | state = super().__getstate__() |
no outgoing calls
no test coverage detected