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

Class RandIntTensor

challenges/core/challenge_base.py:25–32  ·  view source on GitHub ↗

Uniform integer random input in [low, high).

Source from the content-addressed store, hash-verified

23
24
25class RandIntTensor:
26 """Uniform integer random input in [low, high)."""
27
28 def __init__(self, shape, low, high, dtype="int32"):
29 self.shape = tuple(shape)
30 self.low = low
31 self.high = high
32 self.dtype = dtype
33
34
35class FullTensor:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected