Upload model
Browse files- modeling_phylogpn.py +1 -2
modeling_phylogpn.py
CHANGED
@@ -242,11 +242,10 @@ class PhyloGPNModel(PreTrainedModel):
|
|
242 |
|
243 |
def forward(self, input_ids: torch.Tensor):
|
244 |
output_tensor = self._model(input_ids)
|
245 |
-
output_array = output_tensor.numpy(force=True)
|
246 |
|
247 |
results = {}
|
248 |
|
249 |
for idx, key in enumerate("ACGT"):
|
250 |
-
results[key] =
|
251 |
|
252 |
return results
|
|
|
242 |
|
243 |
def forward(self, input_ids: torch.Tensor):
|
244 |
output_tensor = self._model(input_ids)
|
|
|
245 |
|
246 |
results = {}
|
247 |
|
248 |
for idx, key in enumerate("ACGT"):
|
249 |
+
results[key] = output_tensor[:, :, idx]
|
250 |
|
251 |
return results
|