(self, x: Tensor, n: int)
| 374 | return x |
| 375 | |
| 376 | def invoke_self_multiple_times(self, x: Tensor, n: int) -> Tensor: |
| 377 | # To call self.inc multiple times, create a context explicitly for each invocation |
| 378 | # with a different `name`. |
| 379 | for i in range(n): |
| 380 | with child_context(f"self_call{i}", module=self): |
| 381 | x = self.inc(x) |
| 382 | return x |
| 383 | |
| 384 | def invoke_child_multiple_times_causing_conflict(self, x: Tensor, n: int) -> Tensor: |
| 385 | for _ in range(n): |
nothing calls this directly
no test coverage detected