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

Function _drop_from_previous_rank

sat/sgm/modules/cp_enc_dec.py:242–244  ·  view source on GitHub ↗
(input_, dim, kernel_size)

Source from the content-addressed store, hash-verified

240
241
242def _drop_from_previous_rank(input_, dim, kernel_size):
243 input_ = input_.transpose(0, dim)[kernel_size - 1 :].transpose(0, dim)
244 return input_
245
246
247class _ConvolutionScatterToContextParallelRegion(torch.autograd.Function):

Callers 1

backwardMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected