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

Win10: tensorflow.contrib.tfprof has no attribute 'model_analyzer'. #159

PAK90 opened this issue Apr 13, 2017 · 3 comments


None yet
4 participants
Copy link

commented Apr 13, 2017

On a Windows 10 system, Python 3.5.2, TF 1.0. Runs two tests, fails the last one with this message:

ERROR: test_train_infer (seq2seq.test.pipeline_test.PipelineTest)
Tests training and inference scripts.
Traceback (most recent call last):
  File "C:\Users\work\Documents\seq2seq\seq2seq\test\", line 148, in test_train_infer
  File "C:\Users\work\Documents\seq2seq\bin\", line 271, in main
  File "C:\Users\work\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\contrib\learn\python\learn\", line 106, in run
    return task()
  File "C:\Users\work\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\contrib\learn\python\learn\", line 459, in train_and_evaluate
  File "C:\Users\work\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\contrib\learn\python\learn\", line 281, in train
    monitors=self._train_monitors + extra_hooks)
  File "C:\Users\work\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\util\", line 280, in new_func
    return func(*args, **kwargs)
  File "C:\Users\work\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\contrib\learn\python\learn\estimators\", line 426, in fit
    loss = self._train_model(input_fn=input_fn, hooks=hooks)
  File "C:\Users\work\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\contrib\learn\python\learn\estimators\", line 981, in _train_model
    config=self.config.tf_config) as mon_sess:
  File "C:\Users\work\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\training\", line 315, in MonitoredTrainingSession
    return MonitoredSession(session_creator=session_creator, hooks=all_hooks)
  File "C:\Users\work\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\training\", line 601, in __init__
    session_creator, hooks, should_recover=True)
  File "C:\Users\work\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\training\", line 428, in __init__
  File "C:\Users\work\Documents\seq2seq\seq2seq\training\", line 246, in begin
    opts = tf.contrib.tfprof.model_analyzer.TRAINABLE_VARS_PARAMS_STAT_OPTIONS
AttributeError: module 'tensorflow.contrib.tfprof' has no attribute 'model_analyzer'

Ran 2 tests in 5.876s

FAILED (errors=1)

From what I've seen in other issues, tf.contrib support is not currently complete for Windows, so I'm guessing that's the problem.


This comment has been minimized.

Copy link

commented Apr 13, 2017

yes, i have the same problem because tf.contrib is not ready for windows.


This comment has been minimized.

Copy link

commented Apr 17, 2017

Yep. Sorry, there no windows support for now, until tf.contrib has windows support.

@dennybritz dennybritz closed this Apr 17, 2017


This comment has been minimized.

Copy link

commented Jun 25, 2017

I have the same problem , is there windows support for tf.contrib now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.