Skip to content
ml-recall

#tensor-creation

1 question from PyTorch

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-checkedPyTorch

NMA asks for "a 1D tensor containing the even numbers between 4 and 40 inclusive" and gives D = torch.arange(4, 41, step=2). How many elements does D have?

an integer