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

Function scatter

utils/common.py:1253–1256  ·  view source on GitHub ↗
(array, index, value)

Source from the content-addressed store, hash-verified

1251 return xyz.numpy() if is_ndarray else xyz
1252
1253def scatter(array, index, value):
1254 for (h, w), v in zip(index, value):
1255 array[h, w] = v
1256 return array
1257
1258def points_as_images(
1259 points,

Callers 1

points_as_imagesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected