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

Class DenseNetAdjoint

tests/visualize/test_occlusion_sensitivity.py:24–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23
24class DenseNetAdjoint(DenseNet121):
25
26 def __call__(self, x, adjoint_info):
27 if adjoint_info != 42:
28 raise ValueError
29 return super().__call__(x)
30
31
32device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…