Skip to content

Potential bug in resnet_run_loop dataset code #4354

@ed-alertedh

Description

@ed-alertedh

System information

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

Describe the problem

I was looking at the resnet code as an example of a high performance input pipeline and noticed that the final prefetch op on the dataset is not assigned to anything:

dataset.prefetch(buffer_size=tf.contrib.data.AUTOTUNE)

Unless prefetch mutates the dataset (the docs don't indicate that it does), that line doesn't appear to be having its intended effect.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions