Skip to content

Instantly share code, notes, and snippets.

@SannaPersson
Created September 13, 2022 14:03
Show Gist options
  • Save SannaPersson/3222035e9876c0f6410bfa84c276b53d to your computer and use it in GitHub Desktop.
Save SannaPersson/3222035e9876c0f6410bfa84c276b53d to your computer and use it in GitHub Desktop.
variational_autoencoder2
# Configuration
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
INPUT_DIM = 784
Z_DIM = 20
H_DIM = 200
NUM_EPOCHS = 10
BATCH_SIZE = 32
LR_RATE = 3e-4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment