Skip to content

Instantly share code, notes, and snippets.

@madagra
Last active December 24, 2021 10:36
Show Gist options
  • Save madagra/2fc4faf381f352dcdc165a08e8d579db to your computer and use it in GitHub Desktop.
Save madagra/2fc4faf381f352dcdc165a08e8d579db to your computer and use it in GitHub Desktop.
T_0 = 0
F_0 = 1
boundary = torch.Tensor([T_0])
boundary.requires_grad = True
boundary_loss = f(nn, boundary) - F0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment