markovmodel / deeptime

Deep learning meets molecular dynamics.
GNU Lesser General Public License v3.0
175 stars 39 forks source link

issue with clear_session() in ALA DP JUPYTER #30

Closed dlbeveridge closed 5 years ago

dlbeveridge commented 5 years ago

Working through Alanine_dipeptide.ipynb

AT "Run several model iterations...." encountered a problem with tensorflow command:

clear_session()

Thoughts on this??


Diagnostic:

UnboundLocalError Traceback (most recent call last)

in 14 # Clear the previous tensorflow session to prevent memory leaks 15 ---> 16 clear_session() 17 18 # Build the model /anaconda2/envs/vampnet/lib/python3.7/site-packages/tensorflow/python/keras/backend.py in clear_session() 343 with graph.as_default(): 344 phase = array_ops.placeholder_with_default( --> 345 False, shape=(), name='keras_learning_phase') 346 _GRAPH_LEARNING_PHASES = {} 347 _GRAPH_LEARNING_PHASES[graph] = phase /anaconda2/envs/vampnet/lib/python3.7/site-packages/tensorflow/python/ops/array_ops.py in placeholder_with_default(input, shape, name) 2091 A `Tensor`. Has the same type as `input`. 2092 """ -> 2093 return gen_array_ops.placeholder_with_default(input, shape, name) 2094
pasqualil commented 5 years ago

I found a lot of similar issues on stack overflow that point to a compatibility issue between tensorflow and python 3.7 . What version of python are you using?

dlbeveridge commented 5 years ago

Luca,

Thanks. I am on python 3.7.3 so that may be the problem.

DLB

On Wed, Jun 26, 2019 at 12:00 PM Luca Pasquali notifications@github.com wrote:

I found a lot of similar issues on stack overflow that point to a compatibility issue between tensorflow and python 3.7 . What version of python are you using?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/markovmodel/deeptime/issues/30?email_source=notifications&email_token=AIAOWP2KRQQW3HGXGFQKAWDP4OG7VA5CNFSM4H3AWHL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYUAEAI#issuecomment-505938433, or mute the thread https://github.com/notifications/unsubscribe-auth/AIAOWP7PDWLYVWXCSAA62CLP4OG7VANCNFSM4H3AWHLQ .

-- David L. Beveridge Joshua Boger University Professor of Natural Science and Mathematics, Emeritus Chemistry Department and Molecular Biophysics Program Co-Director, The Wasch Center for Continuing Scholarship Wesleyan University, Middletown Ct 06459 Tel 860 685 2575 Cell 860 301 4817 Fax 860 685 2211 dbeveridge@wesleyan.edu www.wesleyan.edu/molbiophys