Created
September 13, 2022 14:03
-
-
Save SannaPersson/a702d533dec93831eab04da11df32fbd to your computer and use it in GitHub Desktop.
variational_autoencoder4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Initialize model, optimizer, loss | |
model = VariationalAutoEncoder(INPUT_DIM, Z_DIM).to(device) | |
optimizer = torch.optim.Adam(model.parameters(), lr=LR_RATE) | |
loss_fn = nn.BCELoss(reduction="sum") | |
# Run training | |
train(NUM_EPOCHS, model, optimizer, loss_fn) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment