(self)
| 45 | """An example model with multi-methods. Each method has multiple input and single output""" |
| 46 | |
| 47 | def __init__(self) -> None: |
| 48 | super().__init__() |
| 49 | self.register_buffer("a", 3 * torch.ones(2, 2, dtype=torch.int32)) |
| 50 | self.register_buffer("b", 2 * torch.ones(2, 2, dtype=torch.int32)) |
| 51 | self.method_names = ["encode", "decode"] |
| 52 | |
| 53 | def encode( |
| 54 | self, x: torch.Tensor, q: torch.Tensor, a: int = DEFAULT_INT_INPUT |
no test coverage detected