Skip to content
Snippets Groups Projects
Commit e2fea93b authored by marvnsch's avatar marvnsch
Browse files

Readd mps support

parent 950eb155
No related branches found
No related tags found
No related merge requests found
......@@ -97,8 +97,7 @@ class Seq2Seq(nn.Module):
# setup environment
source_data_path = str(project_root / "data/tokenizer-data/news-commentary-v11.en")
target_data_path = str(project_root / "data/tokenizer-data/news-commentary-v11.de")
#device = utils.pytorch.get_available_device()
device = torch.device("cpu")
device = utils.pytorch.get_available_device()
date_time_now = datetime.now().strftime("%m%d%Y_%H%M")
model_output_path = str(work_dir / f"./checkpoints/{date_time_now}_RNN_no_attention_unidirectional.pt")
......
......@@ -133,8 +133,7 @@ class Seq2Seq(nn.Module):
# setup environment
source_data_path = str(project_root / "data/tokenizer-data/news-commentary-v11.en")
target_data_path = str(project_root / "data/tokenizer-data/news-commentary-v11.de")
#device = utils.pytorch.get_available_device()
device = torch.device("cpu")
device = utils.pytorch.get_available_device()
date_time_now = datetime.now().strftime("%m%d%Y_%H%M")
model_output_path = str(work_dir / f"./checkpoints/{date_time_now}_RNN_attention_bidirectional.pt")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment