Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
DoodleJZ committed Aug 19, 2019
1 parent 9792e2c commit 8d5bdf9
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 40 deletions.
97 changes: 59 additions & 38 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src_division/Zparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def __init__(self, batch_idxs_np):
self.max_len = int(np.max(self.boundaries_np[1:] - self.boundaries_np[:-1]))

#
class FeatureDropoutFunction(nn.functional._functions.dropout.InplaceFunction):
class FeatureDropoutFunction(torch.autograd.function.InplaceFunction):
@classmethod
def forward(cls, ctx, input, batch_idxs, p=0.5, train=False, inplace=False):
if p < 0 or p > 1:
Expand Down
2 changes: 1 addition & 1 deletion src_joint/Zparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def __init__(self, batch_idxs_np):
self.max_len = int(np.max(self.boundaries_np[1:] - self.boundaries_np[:-1]))

#
class FeatureDropoutFunction(nn.functional._functions.dropout.InplaceFunction):
class FeatureDropoutFunction(torch.autograd.function.InplaceFunction):
@classmethod
def forward(cls, ctx, input, batch_idxs, p=0.5, train=False, inplace=False):
if p < 0 or p > 1:
Expand Down

0 comments on commit 8d5bdf9

Please sign in to comment.