Skip to content
ml-recall

#batch-first

1 question from Recurrent Neural Networks

Timed test

1 question · 1 min · score and explanations at the end

Take a test
Q 1 / 1Score 0 / 0

Question 1: Short answer

easyAI-checkedRecurrent Neural Networks

A batch contains 8 weather sequences, each covering 20 hours, with 3 measurements per hour (temperature, humidity and wind speed).

import torch
import torch.nn as nn

rnn = nn.RNN(input_size=3, hidden_size=16, batch_first=True)
out, h_n = rnn(torch.randn(8, 20, 3))

The shape of out is and the shape of h_n is .

Fill in every blank (hints in the boxes). Enter moves to the next blank.