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

Function _drop_from_previous_rank

sat/vae_modules/cp_enc_dec.py:291–293  ·  view source on GitHub ↗
(input_, dim, kernel_size)

Source from the content-addressed store, hash-verified

289
290
291def _drop_from_previous_rank(input_, dim, kernel_size):
292 input_ = input_.transpose(0, dim)[kernel_size - 1 :].transpose(0, dim)
293 return input_
294
295
296class _ConvolutionScatterToContextParallelRegion(torch.autograd.Function):

Callers 2

backwardMethod · 0.70
backwardMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected