Skip to content

Commit 372458b

Browse files
committed
mypy8
1 parent 4a5ac6a commit 372458b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autointent/modules/scoring/_gcn/gcn_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def set_correlation_matrix(self, train_labels: torch.Tensor) -> None:
9595
corr_matrix = self.create_correlation_matrix(
9696
train_labels, self.num_classes, self.p_reweight, self.tau_threshold
9797
)
98-
self.correlation_matrix.data.copy_(corr_matrix)
98+
self.correlation_matrix.copy_(corr_matrix)
9999

100100
def forward(self, bert_features: torch.Tensor, label_embeddings: torch.Tensor) -> torch.Tensor:
101101
classifiers = label_embeddings
@@ -134,4 +134,4 @@ def load(cls, path: Path, device: str | None = None) -> Self:
134134

135135
instance = instance.to(device)
136136
instance.eval()
137-
return instance
137+
return instance

0 commit comments

Comments
 (0)