Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 1, 2025
1 parent 4d5c370 commit 3edaeeb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pvnet/models/multimodal/site_encoders/encoders.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,24 +74,24 @@ def __init__(
)

def _calculate_attention(self, x):
i=0
i = 0
for key in x.keys():
if(i==17):
ans=key
if i == 17:
ans = key
print(key, type(key))
i+=1
i += 1
gsp_ids = x[ans].squeeze().int()
attention = self._attention_network(gsp_ids)
return attention

def _encode_value(self, x):
# Shape: [batch size, sequence length, PV site]
i=0
i = 0
for key in x.keys():
if(i==6):
ans=key
if i == 6:
ans = key
print(key, type(key))
i+=1
i += 1
pv_site_seqs = x[ans].float()
batch_size = pv_site_seqs.shape[0]

Expand Down

0 comments on commit 3edaeeb

Please sign in to comment.