Skip to content

Commit

Permalink
added class frameworks
Browse files Browse the repository at this point in the history
  • Loading branch information
sally-xu-42 committed Nov 20, 2022
1 parent 97e4813 commit bf38cd0
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions code/verifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,22 @@ def _get_ub(self, expr_w, expr_b):
)
else:
return self.prev_layer._get_ub(res_w, res_b)

class DPReLU(torch.nn.Module, DPBackSubstitution):
""" DeepPoly transformer for ReLU layer """
def __init__(self) -> None:
super(DPReLU, self).__init__()

def forward(self):
pass

class DPLinear(torch.nn.Module, DPBackSubstitution):
""" DeepPoly transformer for affine layer """
def __init__(self) -> None:
super().__init__()

def forward(self):
pass


def negative_only(w):
Expand Down

0 comments on commit bf38cd0

Please sign in to comment.