logo

Crowdly

Browser

Add to Chrome

What is the most efficient way to store the result res obtained by executing ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

What is the most efficient way to store the result res obtained by executing the function below, in a python list, arr, given that this function will be called iteratively?

@torch.enable_grad()

def computation(net: nn.Module, x: torch.Tensor):

res = net(x).mean()

return res

0%
0%
0%
100%
0%
More questions like this

Want instant access to all verified answers on moodle.jku.at?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome