Skip to content

Commit

Permalink
Merge pull request #142 from rahulxie/main
Browse files Browse the repository at this point in the history
fix a bug in deep_inspect
  • Loading branch information
ain-soph authored May 26, 2022
2 parents fb68f5f + 22059ba commit cc4551f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,11 @@ def __init__(self, defense_remask_epoch: int = 20, defense_remask_lr=0.01,
subset, _ = self.dataset.split_dataset(dataset, percent=sample_ratio)
self.loader = self.dataset.get_dataloader(mode='train', dataset=subset)

def optimize_mark(self, label: int) -> tuple[torch.Tensor, float]:
def optimize_mark(self, label: int, **kwargs) -> tuple[torch.Tensor, float]:
r"""
Args:
label (int): The class label to optimize.
**kwargs: Any keyword argument (unused).
Returns:
(torch.Tensor, torch.Tensor):
Expand Down

0 comments on commit cc4551f

Please sign in to comment.