Skip to content

Commit

Permalink
Update privacy_engine_dist_extending.py
Browse files Browse the repository at this point in the history
  • Loading branch information
woodyx218 authored Feb 19, 2024
1 parent b4068af commit 215629c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fastDP/privacy_engine_dist_extending.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,12 @@
from .accounting import accounting_manager
from torch.functional import F
import transformers
import mstar.models.gpt2_model
from .supported_differentially_private_layers import *

_DP_supported_layers = [nn.Embedding,
nn.Linear,
nn.Conv2d, nn.LayerNorm, nn.GroupNorm,
transformers.pytorch_utils.Conv1D,
mstar.models.gpt2_model.Conv1DGeLU,
]

class PrivacyEngine_Distributed_extending(object):
Expand Down

0 comments on commit 215629c

Please sign in to comment.