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

Method __call__

monai/visualize/gradient_based.py:163–165  ·  view source on GitHub ↗
(self, x: torch.Tensor, index: torch.Tensor | int | None = None, **kwargs: Any)

Source from the content-addressed store, hash-verified

161 """
162
163 def __call__(self, x: torch.Tensor, index: torch.Tensor | int | None = None, **kwargs: Any) -> torch.Tensor:
164 with replace_modules_temp(self.model, "relu", _GradReLU(), strict_match=False):
165 return super().__call__(x, index, **kwargs)
166
167
168class GuidedBackpropSmoothGrad(SmoothGrad):

Callers

nothing calls this directly

Calls 3

replace_modules_tempFunction · 0.90
_GradReLUClass · 0.85
__call__Method · 0.45

Tested by

no test coverage detected