MCPcopy Create free account
hub / github.com/Atrovast/THGS / __init__

Method __init__

ext/spt/transforms/sampling.py:356–362  ·  view source on GitHub ↗
(self, x=0, y=0, tiling=2)

Source from the content-addressed store, hash-verified

354 """
355
356 def __init__(self, x=0, y=0, tiling=2):
357 tiling = (tiling, tiling) if isinstance(tiling, int) else tiling
358 assert 0 <= x < tiling[0]
359 assert 0 <= y < tiling[1]
360 self.tiling = torch.as_tensor(tiling)
361 self.x = x
362 self.y = y
363
364 def _process(self, data):
365 # Compute the xy coordinates in the tiling grid, for each point

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected