MCPcopy Create free account
hub / github.com/YeWR/EfficientZero / forward

Method forward

core/dataset.py:56–59  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

54 self.scale = scale
55
56 def forward(self, x):
57 r = torch.randn((x.size(0), 1, 1, 1), device=x.device)
58 noise = 1.0 + (self.scale * r.clamp(-2.0, 2.0))
59 return x * noise

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected