aboutsummaryrefslogtreecommitdiff
path: root/swr2_asr/utils
diff options
context:
space:
mode:
authorPherkel2023-09-18 21:53:18 +0200
committerPherkel2023-09-18 21:53:18 +0200
commita4049cb0236155fe088676afaf8e3f4a86adbf68 (patch)
tree47a81863381f76f67f6a46b89f04c95170e7b05f /swr2_asr/utils
parentd9421cafa088babdf6b84fa18af28ba6671addce (diff)
linter 2
Diffstat (limited to 'swr2_asr/utils')
-rw-r--r--swr2_asr/utils/visualization.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/swr2_asr/utils/visualization.py b/swr2_asr/utils/visualization.py
index 23956fd..c56ceb0 100644
--- a/swr2_asr/utils/visualization.py
+++ b/swr2_asr/utils/visualization.py
@@ -15,8 +15,8 @@ def plot(path):
while True:
try:
current_state = torch.load(
- path + str(epoch), map_location=torch.device("cpu")
- ) # pylint: disable=no-member
+ path + str(epoch), map_location=torch.device("cpu") # pylint: disable=no-member
+ )
except FileNotFoundError:
break
train_losses.append((epoch, current_state["train_loss"].item()))