MCPcopy Create free account
hub / github.com/Gabesarch/ICAL / pack_seqdim

Function pack_seqdim

TEACh/utils/basic.py:113–119  ·  view source on GitHub ↗
(tensor, B)

Source from the content-addressed store, hash-verified

111 return med
112
113def pack_seqdim(tensor, B):
114 shapelist = list(tensor.shape)
115 B_, S = shapelist[:2]
116 assert(B==B_)
117 otherdims = shapelist[2:]
118 tensor = torch.reshape(tensor, [B*S]+otherdims)
119 return tensor
120
121def unpack_seqdim(tensor, B):
122 shapelist = list(tensor.shape)

Callers 2

apply_4x4s_to_voxsMethod · 0.85
prep_occs_supervisionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected