| 846 | |
| 847 | def test_hardtanh(): |
| 848 | class Hardtanh(torch.nn.Module): |
| 849 | def __init__(self): |
| 850 | super().__init__() |
| 851 | self.ht = torch.nn.Hardtanh() |
| 852 | |
| 853 | def forward(self, input): |
| 854 | return self.ht(input) |
| 855 | |
| 856 | class Hardtanh2(torch.nn.Module): |
| 857 | def forward(self, input): |
no outgoing calls
searching dependent graphs…