Skip to content

Instantly share code, notes, and snippets.

@arunm8489
Created August 2, 2020 04:41
Show Gist options
  • Save arunm8489/5aa532634f3774bf1014333314a61463 to your computer and use it in GitHub Desktop.
Save arunm8489/5aa532634f3774bf1014333314a61463 to your computer and use it in GitHub Desktop.
device = torch.device('cuda:0' if torch.cuda.is_available() else 'cpu')
model = Network(weight_matrix=embedding_matrix,hidden_dim=128,seq_len=440)
model = model.to(device)
model
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment