My question concerns the logic of building a neural network. #484
Unanswered
Duwimpuhwe
asked this question in
Q&A
Replies: 1 comment
-
Hi @Duwimpuhwe , Good question! That can be a bit confusing when you start to work with batches. But the way E.g. See the ![]() I'd also try playing around with some example code/tensors to get a feel of what the inputs/outputs of the layers feel like. For example: import torch
from torch import nn
m = nn.Linear(20, 30)
input = torch.randn(128, 20)
output = m(input)
print(output.size()) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
With created instance of built model, the input shape is equivalent to the size number of pixels of a flatten image 28*28=784, but during the training and prediction the batch of 32 images is flattened and passed to the model (through the first layer onwards). how does the batch of image processed while the create models has the first layer with neurons matching with the size of the single images?
Beta Was this translation helpful? Give feedback.
All reactions