Method
forward
(
self, a: torch.Tensor, b: torch.Tensor, c: torch.Tensor
)
Source from the content-addressed store, hash-verified
| 68 | super().__init__() |
| 69 | |
| 70 | def forward( |
| 71 | self, a: torch.Tensor, b: torch.Tensor, c: torch.Tensor |
| 72 | ) -> torch.Tensor: |
| 73 | x: torch.Tensor = torch.add(a, b) |
| 74 | y: torch.Tensor = torch.add(x, c) |
| 75 | z: torch.Tensor = torch.add(x, y) |
| 76 | return z |
| 77 | |
| 78 | def get_random_inputs(self) -> Sequence[torch.Tensor]: |
| 79 | n = 10 # to create a large tensor |
Callers
nothing calls this directly
Tested by
no test coverage detected