MCPcopy Create free account
hub / github.com/DSL-Lab/StreamSplat / forward

Method forward

encoders/dinov2/layers/layer_scale.py:26–27  ·  view source on GitHub ↗
(self, x: Tensor)

Source from the content-addressed store, hash-verified

24 self.gamma = nn.Parameter(init_values * torch.ones(dim))
25
26 def forward(self, x: Tensor) -> Tensor:
27 return x.mul_(self.gamma) if self.inplace else x * self.gamma

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected