MCPcopy Create free account
hub / github.com/AlphaGPU/leetgpu-challenges / RandnTensor

Class RandnTensor

challenges/core/challenge_base.py:15–22  ·  view source on GitHub ↗

Normal (Gaussian) random input.

Source from the content-addressed store, hash-verified

13
14
15class RandnTensor:
16 """Normal (Gaussian) random input."""
17
18 def __init__(self, shape, mean=0.0, std=1.0, dtype="float32"):
19 self.shape = tuple(shape)
20 self.mean = mean
21 self.std = std
22 self.dtype = dtype
23
24
25class RandIntTensor:

Calls

no outgoing calls

Tested by

no test coverage detected