MCPcopy Create free account
hub / github.com/pytorch/tutorials / forward

Method forward

intermediate_source/parametrizations.py:341–342  ·  view source on GitHub ↗
(self, X)

Source from the content-addressed store, hash-verified

339 self.mask = torch.bernoulli(mask)
340
341 def forward(self, X):
342 return X * self.mask
343
344 def right_inverse(self, A):
345 return A

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected