MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / _GradReLU

Class _GradReLU

monai/visualize/gradient_based.py:48–55  ·  view source on GitHub ↗

A customized ReLU with the backward pass imputed for guided backpropagation (https://arxiv.org/abs/1412.6806).

Source from the content-addressed store, hash-verified

46
47
48class _GradReLU(torch.nn.Module):
49 """
50 A customized ReLU with the backward pass imputed for guided backpropagation (https://arxiv.org/abs/1412.6806).
51 """
52
53 def forward(self, x: torch.Tensor) -> torch.Tensor:
54 out: torch.Tensor = _AutoGradReLU.apply(x)
55 return out
56
57
58class VanillaGrad:

Callers 2

__call__Method · 0.85
__call__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…