Skip to content
ml-recall

#arange

2 questions from PyTorch, NumPy

Timed test

2 questions · 2 min · score and explanations at the end

Take a test
Q 1 / 2Score 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