We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a8d358 commit b6be00bCopy full SHA for b6be00b
pytorch_grad_cam/shapley_cam.py
@@ -64,7 +64,7 @@ def get_cam_weights(self,
64
retain_graph=False,
65
allow_unused=True
66
)[0]
67
- # print(torch.max(hvp[0]).item()) # Use .item() to get the scalar value
+ # print(torch.max(hvp[0]).item()) # check if hvp is not all zeros
68
if hvp is None:
69
hvp = torch.tensor(0).to(self.device)
70
else:
0 commit comments