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

Method __call__

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

Source from the content-addressed store, hash-verified

171 """
172
173 def __call__(self, x: torch.Tensor, index: torch.Tensor | int | None = None, **kwargs: Any) -> torch.Tensor:
174 with replace_modules_temp(self.model, "relu", _GradReLU(), strict_match=False):
175 return super().__call__(x, index, **kwargs)

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