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

Class FullTensor

challenges/core/challenge_base.py:35–41  ·  view source on GitHub ↗

Constant-filled input (covers zeros / ones / full).

Source from the content-addressed store, hash-verified

33
34
35class FullTensor:
36 """Constant-filled input (covers zeros / ones / full)."""
37
38 def __init__(self, shape, value=0.0, dtype="float32"):
39 self.shape = tuple(shape)
40 self.value = value
41 self.dtype = dtype
42
43
44class OutTensor:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected