Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 607b7ab

Browse files
committed
specify contiguous before flattening reconstructions
1 parent f3344b7 commit 607b7ab

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

‎Capsule_Network.ipynb‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -620,11 +620,7 @@
620620
" # create reconstructed pixels\n",
621621
" x = x * y[:, :, None]\n",
622622
" # flatten image into a vector shape (batch_size, vector_dim)\n",
623-
<<<<<<< HEAD
624623
" flattened_x = x.contiguous().view(x.size(0), -1)\n",
625-
=======
626-
" flattened_x = x.reshape(x.size(0), -1)\n",
627-
>>>>>>> 3818402479096260941d04b79061f35cc262aaa2
628624
" # create reconstructed image vectors\n",
629625
" reconstructions = self.linear_layers(flattened_x)\n",
630626
" \n",

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /