Skip to content
This repository has been archived by the owner on Dec 17, 2021. It is now read-only.

(Update canned estimator to 1.3) Monitors are deprecated. Please use tf.train.SessionRunHook. #61

Closed
jcomfort4 opened this issue Aug 8, 2017 · 2 comments
Assignees

Comments

@jcomfort4
Copy link

For problems running the sample code please provide the following information.

System information

  • Windows 10
  • Tensorflow Version 1.2.0 (GPU)
  • Python Version 3.6

Describe the problem

I am trying to run the code locally in a jupyter notebook and try some different models (ie. only change the build estimator to a DNNClassifier for example) and I am getting a warning "Anaconda3\envs\tensorflow-gpu\lib\site-packages\tensorflow\contrib\learn\python\learn\monitors.py:268: BaseMonitor.init (from tensorflow.contrib.learn.python.learn.monitors) is deprecated and will be removed after 2016-12-05.
Instructions for updating:
Monitors are deprecated. Please use tf.train.SessionRunHook."

which suggests that something in the code is still reliant on Monitors instead of tf.train.SessionRunHook. I don't see any explicit use of Monitors, and I can't find where the default is monitors so I have not been able to diagnose where I need to use tf.train.SessionRunHook. Can anybody help to identify what modifications I would need to make to get past this warning or can it safely be ignored?

Thanks for the help!

@elibixby elibixby changed the title Monitors are deprecated. Please use tf.train.SessionRunHook. (Update canned estimator to 1.3) Monitors are deprecated. Please use tf.train.SessionRunHook. Aug 8, 2017
@elibixby
Copy link
Contributor

elibixby commented Aug 8, 2017

Thanks for the report. Our code currently uses the canned estimator tf.contrib.learn.DNNCombinedLinearClassifier which under the hood uses monitors until version 1.3. So you should see these warnings going away when 1.3 is released and we update these samples. @nkashy1 will close out this issue once we update to 1.3.

@puneith
Copy link
Contributor

puneith commented Jan 26, 2018

@jcomfort4 We have upgraded Census to TF1.4. Please try using that. Feel free to reopen or file another issue if you still encounter issues.

@puneith puneith closed this as completed Jan 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants