models icon indicating copy to clipboard operation
models copied to clipboard

AttributeError: module 'tensorflow.contrib.data' has no attribute 'TFRecordDataset'

Open a819721810 opened this issue 8 years ago • 5 comments

Please go to Stack Overflow for help and support:

http://stackoverflow.com/questions/tagged/tensorflow

Also, please understand that many of the models included in this repository are experimental and research-style code. If you open a GitHub issue, here is our policy:

  1. It must be a bug, a feature request, or a significant problem with documentation (for small docs fixes please send a PR instead).
  2. The form below must be filled out.

Here's why we have that policy: TensorFlow developers respond to issues. We want to focus on work that benefits the whole community, e.g., fixing bugs and adding features. Support only helps individuals. GitHub also notifies thousands of people when issues are filed. We want them to see you communicating an interesting problem, rather than being redirected to Stack Overflow.


System information

  • What is the top-level directory of the model you are using:the newest model
  • Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04):Linux Ubuntu 16.04
  • TensorFlow installed from (source or binary):binary
  • TensorFlow version (use command below):1.70
  • Bazel version (if compiling from source):
  • CUDA/cuDNN version:CUDA:9.0 cudnn:7.0.5
  • GPU model and memory:1080Ti and 11GB
  • Exact command to reproduce:

You can collect some of this information using our environment capture script:

https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh

You can obtain the TensorFlow version with

python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"

Describe the problem

when i run /models/tutorials/image/cifar10_estimator/cifar10_main.py ,it show some errors:

image

Source code / logs

Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached. Try to provide a reproducible test case that is the bare minimum necessary to generate the problem.

a819721810 avatar May 04 '18 07:05 a819721810

Adding some people who may be able to help.

bitfort avatar May 07 '18 15:05 bitfort

tf.contrib.data has been deprecated use tf.data instead https://github.com/tensorflow/tensorflow/blob/r1.4/tensorflow/contrib/data/README.md

LimJing7 avatar May 10 '18 22:05 LimJing7

I tried to use tf.data possibly,if I remembered correctly,it did not worked.

a819721810 avatar May 11 '18 01:05 a819721810

Look at the link I linked to, it explains how to port your code over to the new api.

LimJing7 avatar May 11 '18 01:05 LimJing7

Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks!

Harshini-Gadige avatar Oct 31 '18 21:10 Harshini-Gadige