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
TF 2.0 crossed_column on Windows fails with SystemError: <built-in function TFE_Py_FastPathExecute> returned a result with an error set #28846
Comments
SystemError: <built-in function TFE_Py_FastPathExecute> returned a result with an error set
on Windows
@hsm207 I tried reproducing the issue on my system but the code executed without any error. Can you try once again and let us know if that still gives error. Thanks! |
@gadagashwini yes, I still get the same error. Is there additional information I can provide to help you diagnose this issue? |
I have the same issue following the same 'Classify structured data' tutorial. Same characteristics as the original poster, only I'm running tf on GPU. |
Same here. |
Same here on 2.0 beta version |
I get the same error about the "Built-in function ... returned a result with an error set" but refers to the function 'TFE_Py_TapeWatch'. |
I am having the same error... any solutions? |
I am also having the same error in the "Classify structured data" guide for tf 2.0. I also had a similar issue on another model and both are listing gen_sparse_ops.py as the last script in the traceback. |
I tried on Colab as well on local system with Tensorflow 2.0.0.rc0. It is working as expected, can you please try with latest TF version and check. PTAL colab gist here and Jupyter notebook gist here |
I tried running the code again after upgrading to |
Glad it is working. |
@hsm207 I tried to upgrade with |
@JerichoHy I did not do an upgrade. I created a new conda environment and ran |
Thanks. |
@JerichoHy I created a new conda environment with 'OverflowError: Python int too large to convert to C long' '~\Miniconda3\lib\site-packages\tensorflow_core\python\ops\gen_sparse_ops.py in sparse_cross(indices, values, shapes, dense_inputs, hashed_output, num_buckets, hash_key, out_type, internal_type, name) SystemError: returned a result with an error set' Happy to provide more info. |
@Akoopie Please post a new issue describing your problem and provide all relevant information from the template. Thanks |
@ymodak The issue is |
This error is closed but it still happening in windows 10.
|
`import tensorflow as tf #tf.version: '2.1.0' from tensorflow import feature_column data = {'marks': [55,21,63,88,74,54,95,41,84,52], def demo(feature_column): marks = feature_column.numeric_column("marks") grade = feature_column.categorical_column_with_vocabulary_list( crossed_feature = feature_column.crossed_column([marks_buckets, grade], hash_bucket_size=10) |
OverflowError Traceback (most recent call last) The above exception was the direct cause of the following exception: SystemError Traceback (most recent call last) in demo(feature_column) C:\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow_core\python\keras\engine\base_layer.py in call(self, inputs, *args, **kwargs) C:\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow_core\python\feature_column\dense_features.py in call(self, features, cols_to_output_tensors) C:\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow_core\python\feature_column\feature_column_v2.py in get_dense_tensor(self, transformation_cache, state_manager) C:\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow_core\python\feature_column\feature_column_v2.py in get(self, key, state_manager) C:\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow_core\python\feature_column\feature_column_v2.py in transform_feature(self, transformation_cache, state_manager) C:\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow_core\python\feature_column\feature_column_v2.py in get_sparse_tensors(self, transformation_cache, state_manager) C:\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow_core\python\feature_column\feature_column_v2.py in get(self, key, state_manager) C:\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow_core\python\feature_column\feature_column_v2.py in transform_feature(self, transformation_cache, state_manager) C:\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow_core\python\ops\sparse_ops.py in sparse_cross_hashed(inputs, num_buckets, hash_key, name) C:\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow_core\python\ops\sparse_ops.py in _sparse_cross_internal(inputs, hashed_output, num_buckets, hash_key, name) C:\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow_core\python\ops\gen_sparse_ops.py in sparse_cross(indices, values, shapes, dense_inputs, hashed_output, num_buckets, hash_key, out_type, internal_type, name) SystemError: built-in function TFE_Py_FastPathExecute returned a result with an error set |
import tensorflow as tf # tf.version: 1.13.1 #run my code on https://www.katacoda.com/courses/tensorflow/playground sess=tf.Session()#appended data = {'marks': [55,21,63,88,74,54,95,41,84,52], marks = feature_column.numeric_column("marks") grade = feature_column.categorical_column_with_vocabulary_list( crossed_feature = feature_column.crossed_column([marks_buckets, grade], hash_bucket_size=10) inputs = tf.feature_column.input_layer(data, [feature_column.indicator_column(crossed_feature)]) init = tf.global_variables_initializer() I just changed my code for running on tensorflow version 1.13.1 from https://www.katacoda.com/courses/tensorflow/playground |
I'm getting the same error on Windows OS 10, tensorflow version 2.1.0 on gpu in conda environment using jupyter lab. final error message: |
Please make sure that this is a bug. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template
System information
You can collect some of this information using our environment capture
script
You can also obtain the TensorFlow version with: 1. TF 1.0:
python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
2. TF 2.0:python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"
Describe the current behavior
The code snippets works fine on Colab but gives the following error on Windows:
Executing:
gives:
9223372036854775807
Describe the expected behavior
Same output as running on Colab:
Code to reproduce the issue
Other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.
The text was updated successfully, but these errors were encountered: