calbors commited on
Commit
fb234fb
·
verified ·
1 Parent(s): 8e0a2a4

Upload model

Browse files
Files changed (1) hide show
  1. 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] = output_array[:, :, idx]
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