diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-05-04 23:24:00 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-05-04 23:24:00 +0200 |
commit | 4defc734b681071e19dd86404abd416d24330b9a (patch) | |
tree | 2447a7bc3fada64d1b45ac73346f816f9e90849c /notebooks | |
parent | 53450493e0a13d835fd1d2457c49a9d60bee0e18 (diff) |
Bug fix
Diffstat (limited to 'notebooks')
-rw-r--r-- | notebooks/00-scratch-pad.ipynb (renamed from notebooks/00-testing-stuff-out.ipynb) | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/notebooks/00-testing-stuff-out.ipynb b/notebooks/00-scratch-pad.ipynb index 12c5145..d50fd59 100644 --- a/notebooks/00-testing-stuff-out.ipynb +++ b/notebooks/00-scratch-pad.ipynb @@ -27,6 +27,57 @@ "cell_type": "code", "execution_count": 2, "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "ModuleList(\n", + " (0): ModuleList(\n", + " (0): Linear(in_features=10, out_features=10, bias=True)\n", + " )\n", + " (1): ModuleList(\n", + " (0): Linear(in_features=10, out_features=10, bias=True)\n", + " )\n", + " (2): ModuleList(\n", + " (0): Linear(in_features=10, out_features=10, bias=True)\n", + " )\n", + " (3): ModuleList(\n", + " (0): Linear(in_features=10, out_features=10, bias=True)\n", + " )\n", + " (4): ModuleList(\n", + " (0): Linear(in_features=10, out_features=10, bias=True)\n", + " )\n", + " (5): ModuleList(\n", + " (0): Linear(in_features=10, out_features=10, bias=True)\n", + " )\n", + " (6): ModuleList(\n", + " (0): Linear(in_features=10, out_features=10, bias=True)\n", + " )\n", + " (7): ModuleList(\n", + " (0): Linear(in_features=10, out_features=10, bias=True)\n", + " )\n", + " (8): ModuleList(\n", + " (0): Linear(in_features=10, out_features=10, bias=True)\n", + " )\n", + " (9): ModuleList(\n", + " (0): Linear(in_features=10, out_features=10, bias=True)\n", + " )\n", + ")" + ] + }, + "execution_count": 2, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "nn.ModuleList([nn.ModuleList([nn.Linear(10, 10)]) for _ in range(10)])" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": {}, "outputs": [], "source": [ "from omegaconf import OmegaConf" |