logo

Crowdly

Suppose the input to the below CNN is feature matrix of shape [80 X 16000]. Cal...

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

Suppose the input to the below CNN is feature matrix of shape [80 X 16000]. Calculate the ???? in the code below i.e. you need to calculate the input for self.linear layer.

import torch.nn as nn

class SimpleASRCNN(nn.Module):

    def __init__(self, num_classes):

        super(SimpleASRCNN, self).__init__()

        self.conv_layers = nn.Sequential(

            nn.Conv2d(1, 32, kernel_size=(3,3), padding=1),

            nn.ReLU(),

            nn.MaxPool2d((2,2)),

            nn.Conv2d(32, 64, kernel_size=(3,3), padding=1),

            nn.ReLU(),

            nn.MaxPool2d((2,2))

        )

        self.fc = nn.Linear(????, num_classes)

    def forward(self, x):

        x = self.conv_layers(x)

        x = x.view(x.size(0), -1)

        return self.fc(x)

Більше питань подібних до цього

Хочете миттєвий доступ до всіх перевірених відповідей на lms.thapar.edu?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!