Closed tbnxyzfz1 closed 3 years ago
I tried
import tensorflow.compat.v1 as tf
Then the error message becomes
\AppData\Roaming\Python\Python38\site-packages\tensorflow\python\eager\def_function.py in _call(self, *args, **kwds)
853 # In this case we have created variables on the first call, so we run the
854 # defunned version which is guaranteed to never create variables.
--> 855 return self._stateless_fn(*args, **kwds) # pylint: disable=not-callable
856 elif self._stateful_fn is not None:
857 # Release the lock early so that multiple threads can perform the call
TypeError: 'NoneType' object is not callable
This is likely due to zip objects as generators in model.fit
. You may want try with list
object as your input.
I am using codes from this project https://github.com/abhinavsagar/kaggle-notebooks/blob/master/data_science_bowl_2018.ipynb
This code gives this error:
What caused this error and how to solve it? Thank you.