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

Closed
PAK90 opened this issue Apr 13, 2017 · 3 comments

Comments

Projects
None yet
4 participants
@PAK90
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\pipeline_test.py", line 148, in test_train_infer
    train_script.main([])
  File "C:\Users\work\Documents\seq2seq\bin\train.py", line 271, in main
    schedule=FLAGS.schedule)
  File "C:\Users\work\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\contrib\learn\python\learn\learn_runner.py", line 106, in run
    return task()
  File "C:\Users\work\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\contrib\learn\python\learn\experiment.py", line 459, in train_and_evaluate
    self.train(delay_secs=0)
  File "C:\Users\work\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\contrib\learn\python\learn\experiment.py", 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\deprecation.py", 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\estimator.py", 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\estimator.py", 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\monitored_session.py", 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\monitored_session.py", 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\monitored_session.py", line 428, in __init__
    h.begin()
  File "C:\Users\work\Documents\seq2seq\seq2seq\training\hooks.py", 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.

@wolfshow

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.

@dennybritz

This comment has been minimized.

Copy link
Contributor

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

@soukira

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.