Method
forward
(
self,
x_spatial: torch.Tensor,
x_temporal: torch.Tensor,
image_only_indicator: Optional[torch.Tensor] = None,
)
Source from the content-addressed store, hash-verified
| 318 | return alpha |
| 319 | |
| 320 | def forward( |
| 321 | self, |
| 322 | x_spatial: torch.Tensor, |
| 323 | x_temporal: torch.Tensor, |
| 324 | image_only_indicator: Optional[torch.Tensor] = None, |
| 325 | ) -> torch.Tensor: |
| 326 | alpha = self.get_alpha(image_only_indicator) |
| 327 | x = alpha.to(x_spatial.dtype) * x_spatial + (1.0 - alpha).to(x_spatial.dtype) * x_temporal |
| 328 | return x |
Callers
nothing calls this directly
Tested by
no test coverage detected