(self, index)
| 739 | return self._inputs[index] |
| 740 | |
| 741 | def stacked_input(self, index): |
| 742 | t, is_stacked, _ = self.input(index) |
| 743 | if not is_stacked: |
| 744 | op_type = self.op_type |
| 745 | op_def = getattr(self._op, "op_def", None) |
| 746 | if op_def is None: |
| 747 | input_name = "at index %d" % index |
| 748 | else: |
| 749 | input_name = "\"%s\"" % op_def.input_arg[index].name |
| 750 | raise ValueError("Input %s of op \"%s\" expected to be not loop invariant" |
| 751 | ".\nError while converting op %s" |
| 752 | "with converted inputs\n%s" % (input_name, op_type, |
| 753 | self._op, self.inputs)) |
| 754 | return t |
| 755 | |
| 756 | def unstacked_input(self, index): |
| 757 | t, is_stacked, _ = self.input(index) |
no test coverage detected