module ‘numpy’ has no attribute ‘object’.
np.object
was a deprecated alias for the builtin object
. To avoid this error in existing code, use object
by itself. Doing this will not modify any behavior and is safe.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
NumPy 1.20.0 Release Notes — NumPy v2.1.dev0 Manual
Hi @alex_Alex
Welcome to the TensorFlow Forum!
Please provide minimal reproducible code to replicate the error and understand the issue. Thank you.
Also what Tensorflow version are you using? If quite old version, upgrading Tensorflow could well resolve the issue.