-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NumPy v2 Compatibility #6874
Comments
@yatbear Hot-fix is here. --- a/tensorboard/compat/tensorflow_stub/dtypes.py 2024-06-30 15:59:21.290476559 +0300
+++ b/tensorboard/compat/tensorflow_stub/dtypes.py 2024-06-30 15:59:29.377199428 +0300
@@ -674,7 +674,7 @@
# dtype with a single constant (np.string does not exist) to decide
# dtype is a "string" type. We need to compare the dtype.type to be
# sure it's a string type.
- if type_value.type == np.string_ or type_value.type == np.unicode_:
+ if type_value.type == np.bytes_ or type_value.type == np.str_:
return string
if isinstance(type_value, (type, np.dtype)):
--- a/tensorboard/util/tensor_util.py 2024-06-30 15:58:32.200133798 +0300
+++ b/tensorboard/util/tensor_util.py 2024-06-30 15:58:50.533595467 +0300
@@ -137,7 +137,7 @@
# dtype with a single constant (np.string does not exist) to decide
# dtype is a "string" type. We need to compare the dtype.type to be
# sure it's a string type.
- if dtype.type == np.string_ or dtype.type == np.unicode_:
+ if dtype.type == np.bytes_ or dtype.type == np.str_:
return SlowAppendObjectArrayToTensorProto
return GetFromNumpyDTypeDict(_NP_TO_APPEND_FN, dtype)
|
Great! I've search for similar existing issue but found nothing. |
j3soon
added a commit
to j3soon/tbparse
that referenced
this issue
Aug 13, 2024
This is a temporary requirement and should be removed after the tensorboard 2.17.1 release. References: - tensorflow/tensorboard#6871 - tensorflow/tensorboard#6874
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Missing compatibility with the major NumPy v2 release in the latest
tensorboard==2.17.0
version.The text was updated successfully, but these errors were encountered: