soumik12345 / wandb-addons

Weights & Biases Addons is a repository consisting of additional unitilities and community contributions for supercharging your Weights & Biases workflows.
https://geekyrakshit.dev/wandb-addons/
23 stars 7 forks source link

ImportError: cannot import name `NumpyIterator` from `tensorflow.python.data.ops.dataset_ops` #54

Open carrycooldude opened 1 year ago

carrycooldude commented 1 year ago

Screenshot from 2023-09-29 16-50-09 Also trying in some other notebook too which is having this error: Screenshot from 2023-09-29 17-02-00 Here is the link to that colab: https://colab.research.google.com/gist/carrycooldude/3aef89f801b3c4f0c75f4b55b463ccbd/demo-kerascv-x-wandb.ipynb I'm unable to directly create a GitHub issue for you, but I can provide you with a template that you can use to create the issue on GitHub. Here's a template you can use:


Title: ImportError when using 'NumpyIterator' in TensorFlow

Description:

Issue Summary: I encountered an issue related to the 'NumpyIterator' while using TensorFlow. The error message I received is as follows:

ImportError: cannot import name 'NumpyIterator' from 'tensorflow.python.data.ops.dataset_ops' (/usr/local/lib/python3.10/dist-packages/tensorflow/python/data/ops/dataset_ops.py)
soumik12345 commented 1 year ago

@carrycooldude Seems like the first issue can be solved by swapping these lines with the following:

from keras_core import backend, ops
from keras_core.callbacks import Callback

Feel free to submit a PR.

carrycooldude commented 1 year ago

@carrycooldude Seems like the first issue can be solved by swapping these lines with the following:

from keras_core import backend, ops
from keras_core.callbacks import Callback

Feel free to submit a PR.

Sure @soumik12345 , I guess first one ca be solved you're right , I will start working on 2nd issue to do that Can you assign me in the issue #54 that will love to do that

carrycooldude commented 1 year ago

Screenshot from 2023-09-29 22-59-20 @soumik12345 First Issue still have same problem even I tried this one

from keras_core import backend, ops
from keras_core.callbacks import Callback