(self, x)
| 11 | self.dim = dim |
| 12 | self.lm = nn.Linear(int(np.prod(dim)), n_class) |
| 13 | def forward(self, x): |
| 14 | x = x.view(-1, int(np.prod(self.dim))) |
| 15 | out = self.lm(x) |
| 16 | return out, x |
| 17 | def get_embedding_dim(self): |
| 18 | return int(np.prod(self.dim)) |
| 19 |
nothing calls this directly
no outgoing calls
no test coverage detected