tensorflow / tensorflow/recommenders

AttributeError: module 'tensorflow._api.v2.data' has no attribute 'AUTOTUNE'

Open
#338 1 comment 0 reactions 1 assignee View on GitHub

@maciejkula is already working on this.

Since Jul 21, 2021.

bug
Dominant language
Python
Stars
2k
Forks
300
PR merge metrics
No merged PRs in 30d

Description

With Python3.6, tensorflow 2.3.0 and tensorflow_recommenders 0.5.2, I am getting the following error:

File "/usr/local/lib/python3.6/dist-packages/tensorflow_recommenders/layers/factorized_top_k.py", line 255, in Streaming
num_parallel_calls: int = tf.data.AUTOTUNE,
AttributeError: module 'tensorflow._api.v2.data' has no attribute 'AUTOTUNE'

I am not seeing this error when using tensorflow_recommenders 0.5.1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.