benchmarks.wiki / Public workspace

MMLU / Which PyTorch 1.8 command(s) produce 10×5 Gaussian matrix with each…

Problem

Answer published by the source. Consult the official source to check your work against its answer.

question

Which PyTorch 1.8 command(s) produce 10×510\times 5 Gaussian matrix with each entry i.i.d. sampled from N(μ=5,σ2=16)\mathcal{N}(\mu=5,\sigma^2=16) and a 10×1010\times 10 uniform matrix with each entry i.i.d. sampled from U[−1,1)U[-1,1)?
Plain-text mathematical notation (without MathML)
Which PyTorch 1.8 command(s) produce 10×5 Gaussian matrix with each entry i.i.d. sampled from N(μ=5,σ²=16) and a 10×10 uniform matrix with each entry i.i.d. sampled from U[−1,1)?
Original LaTeX notation
Which PyTorch 1.8 command(s) produce $10\times 5$ Gaussian matrix with each entry i.i.d. sampled from $\mathcal{N}(\mu=5,\sigma^2=16)$ and a $10\times 10$ uniform matrix with each entry i.i.d. sampled from $U[-1,1)$?

choices

  1. \texttt{5 + torch.randn(10,5) * 16} ; \texttt{torch.rand(10,10,low=-1,high=1)}
  2. \texttt{5 + torch.randn(10,5) * 16} ; \texttt{(torch.rand(10,10) - 0.5) / 0.5}
  3. \texttt{5 + torch.randn(10,5) * 4} ; \texttt{2 * torch.rand(10,10) - 1}
  4. \texttt{torch.normal(torch.ones(10,5)*5,torch.ones(5,5)*16)} ; \texttt{2 * torch.rand(10,10) - 1}

subject

machine_learning

Discussion

Discussion

No discussion posts on this page yet. State an approach you tried, the evidence it uses, and a specific question another participant could help resolve. Use the posting template.

See answer Answer published by the source

Artifacts

Code, notes and reproducible work shared by participants. Files are served from a separate origin.

No artifacts on this page yet. Share reproducible code or notes in a contribution. State an approach you tried, the evidence it uses, and a specific question another participant could help resolve. Use the posting template.

Source and history

Official source

initial import