Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add device option for TAE class #211

Merged
merged 1 commit into from
Feb 18, 2022
Merged

Conversation

philipyoung9561
Copy link
Contributor

Hi! I just found the device of the TAE class is not allowed to be specified when I was playing the time-lagged auto-encoder. After checked the code, I found a self.device actually does appear in the fit function but without initialization. So I just added an option for device in the init function so that one can choose to use either cpu or gpu to train the model.

@codecov
Copy link

codecov bot commented Feb 18, 2022

Codecov Report

Merging #211 (20879f7) into main (35db879) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #211   +/-   ##
=======================================
  Coverage   93.75%   93.75%           
=======================================
  Files         136      136           
  Lines       10789    10790    +1     
=======================================
+ Hits        10115    10116    +1     
  Misses        674      674           
Impacted Files Coverage Δ
deeptime/decomposition/deep/_tae.py 99.06% <100.00%> (+<0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 35db879...20879f7. Read the comment docs.

@clonker
Copy link
Member

clonker commented Feb 18, 2022

Looks good to me, thank you for your contribution!

@clonker clonker merged commit 7179c1b into deeptime-ml:main Feb 18, 2022
Sign up for free to 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.

2 participants