MCPcopy Create free account
hub / github.com/apache/tvm / Hardtanh

Class Hardtanh

tests/python/relax/test_frontend_from_exported_program.py:848–854  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

846
847def 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):

Callers 1

test_hardtanhFunction · 0.70

Calls

no outgoing calls

Tested by 1

test_hardtanhFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…