Update README.md
Browse files
README.md
CHANGED
|
@@ -28,7 +28,7 @@ dna_seq = 'ACGCGCTGACGCATCAGCATACGA'
|
|
| 28 |
input_seq = tokenizer(dna_seq, return_tensors = 'pt')['input_ids']
|
| 29 |
|
| 30 |
# Pass through the model
|
| 31 |
-
output = model(input_seq)['hidden_states'][-1]
|
| 32 |
|
| 33 |
# Compute Global Average Pooling
|
| 34 |
features = output.mean(1)
|
|
|
|
| 28 |
input_seq = tokenizer(dna_seq, return_tensors = 'pt')['input_ids']
|
| 29 |
|
| 30 |
# Pass through the model
|
| 31 |
+
output = model(input_seq.unsqueeze(0))['hidden_states'][-1]
|
| 32 |
|
| 33 |
# Compute Global Average Pooling
|
| 34 |
features = output.mean(1)
|