(dtype: torch.dtype, device: torch.device)
| 101 | |
| 102 | @staticmethod |
| 103 | def get_instance(dtype: torch.dtype, device: torch.device): |
| 104 | instance = NullIntermediateFeatureNormalizer.instances.get((dtype, device), None) |
| 105 | if instance is None: |
| 106 | instance = NullIntermediateFeatureNormalizer(dtype, device) |
| 107 | NullIntermediateFeatureNormalizer.instances[(dtype, device)] = instance |
| 108 | return instance |
| 109 | |
| 110 | def forward(self, x: torch.Tensor, index: int, rot_index: int = None, skip: Optional[int] = None) -> InterFeatState: |
| 111 | return InterFeatState(x, self.alpha) |
no test coverage detected