tensorflow / tensorflow/datasets

tfds.dataset_builders.TfDataBuilder is not defined

Open
#4,216 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
4.6k
Forks
1.6k
Avg merge
3h 54m
Merged PRs (30d)
1

Description

the example at https://www.tensorflow.org/datasets/api_docs/python/tfds/dataset_builders/TfDataBuilder does not run.

AttributeError: module 'tensorflow_datasets.core' has no attribute 'dataset_builders'

Environment information

  • Operating System: colab

  • Python version: 3.7

  • tensorflow-datasets/tfds-nightly version: 4.6.0

  • tensorflow/tf-nightly version: 2.8.2

  • Does the issue still exists with the last tfds-nightly package (pip install --upgrade tfds-nightly) ?

Reproduction instructions

https://colab.research.google.com/drive/18uDbXiAZBXN1D0v3gubFi3ubLV7DHMnB?usp=sharing

Screen Shot 2022-10-11 at 7 56 14 PM

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.

Research direction

Start with the linked Colab reproduction and the TensorFlow Datasets API page for TfDataBuilder; inspect why tfds.dataset_builders is unavailable in the reported environment. Done means the documented example runs without the AttributeError and the API documentation matches the supported import path.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, tensorflow
Domain
data, machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.