Skip to content

Commit

Permalink
Fix tests failing (#230)
Browse files Browse the repository at this point in the history
* Update pyproject.toml #229

* pin

* use pytorch_lightning in pyproject.toml

* fix test

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
peterdudfield and pre-commit-ci[bot] authored Jul 1, 2024
1 parent 8541d34 commit f362649
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",
"lightning>=2.0.1",
"lightning",
"torchvision",
"pytest",
"pytest-cov",
Expand Down

0 comments on commit f362649

Please sign in to comment.