Skip to content

Commit 53aa6b0

Browse files
committed
naming
1 parent 4b2cf6d commit 53aa6b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

perfusion_pytorch/perfusion.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,11 @@ def forward(
116116

117117
sigmoid_term = (((sim / i_energy) - beta) / temperature).sigmoid()
118118

119-
orig_output = einsum('b n i, o i -> b n o', text_enc, W)
119+
text_enc_output = einsum('b n i, o i -> b n o', text_enc, W)
120120

121121
concept_output = einsum('b i, o i -> b o', i, W)
122122
concept_output = rearrange(concept_output, 'b d -> b 1 d')
123123

124-
W_em_orthogonal_term = orig_output - (sim * concept_output / i_energy)
124+
W_em_orthogonal_term = text_enc_output - (sim * concept_output / i_energy)
125125

126126
return W_em_orthogonal_term + sigmoid_term * o

0 commit comments

Comments
 (0)