| 75 | |
| 76 | |
| 77 | class FTMapBasic(Module): |
| 78 | def __init__(self): |
| 79 | super().__init__() |
| 80 | |
| 81 | def forward(self, xs, y): |
| 82 | def f(x, y): |
| 83 | return x + y |
| 84 | |
| 85 | return torch_map(f, xs, y) + xs |
| 86 | |
| 87 | def get_random_inputs(self): |
| 88 | return torch.rand(2, 4), torch.rand(4) |
| 89 | |
| 90 | |
| 91 | class FTMapDynShape(Module): |
no outgoing calls