Skip to content

Commit 1ef0848

Browse files
committed
remove device error
1 parent 2ec3478 commit 1ef0848

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

chebifier/prediction_models/electra_predictor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def build_graph_from_attention(att, node_labels, token_labels, threshold=0.0):
3636
class ElectraPredictor(NNPredictor):
3737
def __init__(self, model_name: str, ckpt_path: str, **kwargs):
3838
super().__init__(model_name, ckpt_path, **kwargs)
39-
print(f"Initialised Electra model {self.model_name} (device: {self.device})")
39+
print(f"Initialised Electra model {self.model_name}")
4040

4141
def explain_smiles(self, smiles) -> dict:
4242
from chebai.preprocessing.reader import EMBEDDING_OFFSET

chebifier/prediction_models/gnn_predictor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ def __init__(
99
**kwargs,
1010
):
1111
super().__init__(model_name, ckpt_path, **kwargs)
12-
print(f"Initialised GNN model {self.model_name} (device: {self.device})")
12+
print(f"Initialised GNN model {self.model_name}")

0 commit comments

Comments
 (0)