MCPcopy Create free account
hub / github.com/modelscope/modelscope / cat

Method cat

modelscope/models/science/unifold/modules/frame.py:366–373  ·  view source on GitHub ↗
(
        Ts: Sequence[Frame],
        dim: int,
    )

Source from the content-addressed store, hash-verified

364
365 @staticmethod
366 def cat(
367 Ts: Sequence[Frame],
368 dim: int,
369 ) -> Frame:
370 rots = Rotation.cat([T._r for T in Ts], dim)
371 trans = torch.cat([T._t for T in Ts], dim=dim if dim >= 0 else dim - 1)
372
373 return Frame(rots, trans)
374
375 def apply_rot_fn(self, fn: Callable[[Rotation], Rotation]) -> Frame:
376 return Frame(fn(self._r), self._t)

Callers 15

_merge_checkpointFunction · 0.45
stream_greedy_searchMethod · 0.45
stream_sampleMethod · 0.45
_pad_to_largest_tensorFunction · 0.45
recover_from_ricFunction · 0.45
__getitem__Method · 0.45
evaluate_box_proposalsFunction · 0.45
evaluateMethod · 0.45
det_evalMethod · 0.45
get_valueMethod · 0.45
evaluateMethod · 0.45

Calls 1

FrameClass · 0.85

Tested by

no test coverage detected