Skip to content

python 3.11, snakemake problem - #743

Closed
smilesun wants to merge 5 commits into
masterfrom
py11
Closed

python 3.11, snakemake problem#743
smilesun wants to merge 5 commits into
masterfrom
py11

Conversation

@smilesun

@smilesunsmilesun commented Jan 15, 2024

Copy link
Copy Markdown
Collaborator

@smilesun

Copy link
Copy Markdown
CollaboratorAuthor

@smilesunsmilesun reopened this Jan 15, 2024
@smilesun
smilesun requested a review from agisgaJanuary 15, 2024 14:33
@smilesunsmilesun mentioned this pull request Jan 15, 2024
@codecov-commenter

codecov-commenter commented Jan 15, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5043785) 95.05% compared to head (76e0a0f) 95.05%.

Additional details and impacted files
@@ Coverage Diff @@## master #743 +/- ##
=======================================
Coverage 95.05% 95.05% =======================================
Files 125 125 Lines 4911 4911 =======================================
Hits 4668 4668 Misses 243 243 
FlagCoverage Δ
unittests95.05% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@smilesun

Copy link
Copy Markdown
CollaboratorAuthor

@agisga do we approve any pr that failed the CI?

@smilesun

smilesun commented Jan 16, 2024

Copy link
Copy Markdown
CollaboratorAuthor

In tests/test_dann_jigen_transformer.py:73:

domainlab/algos/trainers/train_basic.py:32: in before_epoch
self.model.train()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/torch/nn/modules/module.py:23[98](https://github.com/marrlab/DomainLab/actions/runs/7539289822/job/20521500559?pr=743#step:5:99): in train
module.train(mode)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/torch/nn/modules/module.py:2398: in train
module.train(mode)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/torchvision/models/feature_extraction.py:324: in train
self.graph = self.train_graph
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = GraphModule(
(conv_proj): Conv2d(3, 768, kernel_size=(16, 16), stride=(16, 16))
(encoder): Module(
(dropout): ...out(p=0.0, inplace=False)
)
)
)
(ln): LayerNorm((768,), eps=1e-06, elementwise_affine=True)
)
)
name = 'train_graph'
def __getattr__(self, name: str) -> Any:
if '_parameters' in self.__dict__:
_parameters = self.__dict__['_parameters']
if name in _parameters:
return _parameters[name]
if '_buffers' in self.__dict__:
_buffers = self.__dict__['_buffers']
if name in _buffers:
return _buffers[name]
if '_modules' in self.__dict__:
modules = self.__dict__['_modules']
if name in modules:
return modules[name]
> raise AttributeError(f"'{type(self).__name__}' object has no attribute '{name}'")
E AttributeError: 'GraphModule' object has no attribute 'train_graph'
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/torch/nn/modules/module.py:1695: AttributeError

@smilesun

Copy link
Copy Markdown
CollaboratorAuthor

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@smilesun@codecov-commenter@agisga