Skip to content

Instantly share code, notes, and snippets.

@adamoudad
Created March 3, 2021 15:59
Show Gist options
  • Save adamoudad/e0ac5512b1493ecc24ccd2e0ea5f689d to your computer and use it in GitHub Desktop.
Save adamoudad/e0ac5512b1493ecc24ccd2e0ea5f689d to your computer and use it in GitHub Desktop.
import torch
criterion = nn.BCELoss()
optimizer = torch.optim.Adam(model.parameters())
model = CustomModel()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment