MCPcopy Create free account
hub / github.com/CSAILVision/gandissect / setup

Method setup

netdissect/dissection.py:638–642  ·  view source on GitHub ↗
(self, memmap_grid_info)

Source from the content-addressed store, hash-verified

636
637class VisualizeImageWorker(WorkerBase):
638 def setup(self, memmap_grid_info):
639 self.vizgrid, self.maskgrid, self.origrid, self.seggrid = [
640 {layer: shared_temp_mmap_grid(*info)
641 for layer, info in grid.items()}
642 for grid in memmap_grid_info]
643 def work(self, layer, unit, rank,
644 byte_im, acts, level, scale_offset, seg):
645 self.origrid[layer][unit,:,rank,:byte_im.shape[0],:] = byte_im

Callers

nothing calls this directly

Calls 1

shared_temp_mmap_gridFunction · 0.85

Tested by

no test coverage detected