MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / get_alpha

Method get_alpha

sat/sgm/modules/autoencoding/temporal_ae.py:163–171  ·  view source on GitHub ↗
(
        self,
    )

Source from the content-addressed store, hash-verified

161 return x_in + x
162
163 def get_alpha(
164 self,
165 ):
166 if self.merge_strategy == "fixed":
167 return self.mix_factor
168 elif self.merge_strategy == "learned":
169 return torch.sigmoid(self.mix_factor)
170 else:
171 raise NotImplementedError(f"unknown merge strategy {self.merge_strategy}")
172
173
174class MemoryEfficientVideoBlock(MemoryEfficientAttnBlock):

Callers 1

forwardMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected