MCPcopy Create free account
hub / github.com/QWTforGithub/T2LDM / decode_tensor

Function decode_tensor

utils/common.py:1864–1865  ·  view source on GitHub ↗
(tensor)

Source from the content-addressed store, hash-verified

1862 return torch.tensor(encoded, dtype=torch.long)
1863
1864def decode_tensor(tensor):
1865 return [''.join(chr(i) for i in row if i > 0) for row in tensor.tolist()]
1866
1867def index_points(pts, idx):
1868 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected