(
self,
net: torch.nn.Module,
device: str = "cuda",
dropout: float = 0,
num_layers_in_fc_layers: int = 1024,
)
| 38 | |
| 39 | class 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) |
nothing calls this directly
no outgoing calls
no test coverage detected