Skip to content

Commit

Permalink
Write snippet testing Ava in test_vae.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
NickleDave committed Sep 29, 2023
1 parent 6378072 commit 4fc5d80
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions test_vae.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,26 @@
"cells": [
{
"cell_type": "code",
"execution_count": null,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": []
"source": [
"from src.vak.nets.ava import Ava\n",
"import torch"
]
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {},
"outputs": [],
"source": [
"x_shape = (3, 128, 512)\n",
"input = torch.zeros(x_shape)\n",
"net = Ava(x_shape=(x_shape[1], x_shape[2]))\n",
"output, _ = net.forward(input)\n",
"assert output.shape == x_shape, 'Error'"
]
}
],
"metadata": {
Expand Down

0 comments on commit 4fc5d80

Please sign in to comment.