(self, index)
| 754 | return t |
| 755 | |
| 756 | def unstacked_input(self, index): |
| 757 | t, is_stacked, _ = self.input(index) |
| 758 | if is_stacked: |
| 759 | op_type = self.op_type |
| 760 | op_def = getattr(self._op, "op_def", None) |
| 761 | if op_def is None: |
| 762 | input_name = "at index %d" % index |
| 763 | else: |
| 764 | input_name = "\"%s\"" % op_def.input_arg[index].name |
| 765 | raise ValueError("Input %s of op \"%s\" expected to be loop invariant" |
| 766 | ".\nError while converting op %s" |
| 767 | "with converted inputs\n%s" % (input_name, op_type, |
| 768 | self._op, self.inputs)) |
| 769 | return t |
| 770 | |
| 771 | @property |
| 772 | def op(self): |
no test coverage detected