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

Method __call__

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

Source from the content-addressed store, hash-verified

98 return grad
99
100 def __call__(self, x: torch.Tensor, index: torch.Tensor | int | None = None, **kwargs: Any) -> torch.Tensor:
101 return self.get_grad(x, index, **kwargs)
102
103
104class SmoothGrad(VanillaGrad):

Callers

nothing calls this directly

Calls 1

get_gradMethod · 0.95

Tested by

no test coverage detected