Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Jul 1, 2024
1 parent 2d55473 commit a570d88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pvnet/models/multimodal/linear_networks/networks.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Linear networks used for the fusion model"""
from torch import nn
from torch import nn, rand

from pvnet.models.multimodal.linear_networks.basic_blocks import (
AbstractLinearNetwork,
Expand Down Expand Up @@ -316,6 +316,7 @@ def __init__(
virtual_batch_size=virtual_batch_size,
momentum=momentum,
mask_type=mask_type,
group_attention_matrix=rand(4, in_features)
)

self.activation = nn.LeakyReLU(negative_slope=0.01)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dependencies = [
"ipykernel",
"h5netcdf",
"torch>=2.0.0",
"pytorch_lightning==2.3.0",
"lightning",
"torchvision",
"pytest",
"pytest-cov",
Expand Down

0 comments on commit a570d88

Please sign in to comment.