aboutsummaryrefslogtreecommitdiff
path: root/modules/hypernetworks/hypernetwork.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2022-10-29 07:30:14 +0300
committerGitHub <noreply@github.com>2022-10-29 07:30:14 +0300
commitd3b4b9d7eccfe7b0ebc432f33e679e2e06e6d083 (patch)
tree4f88bb449e0c03a0cdca5fa378dc2f4a4de031c6 /modules/hypernetworks/hypernetwork.py
parentfc89495df3a760dba571550ccbb625565bf61199 (diff)
parentb2a8b263b2f09bd772f75502c5a83656580f34ec (diff)
Merge pull request #3717 from benkyoujouzu/master
Add missing support for linear activation in hypernetwork
Diffstat (limited to 'modules/hypernetworks/hypernetwork.py')
-rw-r--r--modules/hypernetworks/hypernetwork.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/hypernetworks/hypernetwork.py b/modules/hypernetworks/hypernetwork.py
index 8113b35b..87cf3cf3 100644
--- a/modules/hypernetworks/hypernetwork.py
+++ b/modules/hypernetworks/hypernetwork.py
@@ -25,6 +25,7 @@ from statistics import stdev, mean
class HypernetworkModule(torch.nn.Module):
multiplier = 1.0
activation_dict = {
+ "linear": torch.nn.Identity,
"relu": torch.nn.ReLU,
"leakyrelu": torch.nn.LeakyReLU,
"elu": torch.nn.ELU,