We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
python version: 3.10.13 (main, Nov 19 2023, 17:34:57) [GCC 9.3.0] tensorflow version: 2.12.0 safetensors version: 0.4.3
import safetensors.tensorflow import tensorflow as tf tensors = {'tensor1': tf.constant([1, 2, 3])} safetensors.tensorflow.save_file(tensors, '/tmp/tensors.safetensors') assert isinstance(tensors['tensor1'], tf.Tensor), type(tensors['tensor1'])
The assertion triggers
Traceback (most recent call last): ... assert isinstance(tensors['tensor1'], tf.Tensor), type(tensors['tensor1']) AssertionError: <class 'numpy.ndarray'>
This is because this function modifies its argument
The assertion should not trigger.
The text was updated successfully, but these errors were encountered:
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
Sorry, something went wrong.
No branches or pull requests
System Info
python version: 3.10.13 (main, Nov 19 2023, 17:34:57) [GCC 9.3.0]
tensorflow version: 2.12.0
safetensors version: 0.4.3
Information
Reproduction
The assertion triggers
This is because this function modifies its argument
Expected behavior
The assertion should not trigger.
The text was updated successfully, but these errors were encountered: