MCPcopy Index your code
hub / github.com/congwei1230/MoChaBench / __init__

Method __init__

eval-lipsync/script/SyncNetInstance.py:40–49  ·  view source on GitHub ↗
(
        self,
        net: torch.nn.Module,
        device: str = "cuda",
        dropout: float = 0,
        num_layers_in_fc_layers: int = 1024,
    )

Source from the content-addressed store, hash-verified

38
39class SyncNetInstance(torch.nn.Module):
40 def __init__(
41 self,
42 net: torch.nn.Module,
43 device: str = "cuda",
44 dropout: float = 0,
45 num_layers_in_fc_layers: int = 1024,
46 ):
47 super(SyncNetInstance, self).__init__()
48 self.__S__ = net
49 self.device = device
50
51 def evaluate(self, opt):
52 self.__S__.to(self.device)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected