MCPcopy Create free account
hub / github.com/alexklwong/mondi-python / random_nonzero

Method random_nonzero

src/transforms.py:552–576  ·  view source on GitHub ↗

Randomly selects nonzero elements Arg(s): T : torch.Tensor[float32] N x C x H x W tensor density : float percentage of nonzero elements to select Returns: list[tuple[torch.Tensor[float32]]] : list of tuples

(self, T, density=0.10)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

remove_random_nonzeroMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected