Skip to content

Commit

Permalink
Replace deprecated warn with warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaarsen committed Sep 29, 2023
1 parent 93415bd commit faa8fa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion span_marker/modeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ def predict(
from span_marker.trainer import Trainer

if torch.cuda.is_available() and self.device == torch.device("cpu"):
logger.warn(
logger.warning(
"SpanMarker model predictions are being computed on the CPU while CUDA is available."
" Moving the model to CUDA using `model.cuda()` before performing predictions is heavily"
" recommended to significantly boost prediction speeds.",
Expand Down

0 comments on commit faa8fa1

Please sign in to comment.