Update pipe.py
Browse files
pipe.py
CHANGED
|
@@ -79,7 +79,7 @@ class SmilesDiffusionPipe(Pipeline):
|
|
| 79 |
return torch.multinomial(probs, 1)
|
| 80 |
|
| 81 |
|
| 82 |
-
def
|
| 83 |
"""
|
| 84 |
Unmasks all [MASK] tokens in a single forward pass using argmax decoding.
|
| 85 |
"""
|
|
|
|
| 79 |
return torch.multinomial(probs, 1)
|
| 80 |
|
| 81 |
|
| 82 |
+
def unmask_partial_smiles(self, input_ids, model, voc):
|
| 83 |
"""
|
| 84 |
Unmasks all [MASK] tokens in a single forward pass using argmax decoding.
|
| 85 |
"""
|