-
Notifications
You must be signed in to change notification settings - Fork 915
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
cudf.core.subword_tokenizer.SubwordTokenizer.__call__ Tensorflow isssues #9447
Comments
Do you have tensorflow installed in your environment? What happens if you run |
My current TF version
|
Are you able to directly access |
@VibhuJawa , does the |
This seems like a bug on our end here. We should have imported it from cudf/python/cudf/cudf/core/subword_tokenizer.py Lines 23 to 24 in 2718443
@RaeWallace10 , For now it might be worthwhile to change to import tensorflow as tf
from tf.experimental.dlpack import from_dlpack
test_tokenizer_output = cudf_tokenizer(x_test1,
max_length=seq_len,
max_num_rows=len(x_test1),
padding='max_length',
return_tensors='cp',
truncation=True)
test_tokenizer_output['input_ids'] = from_dlpack( test_tokenizer_output['input_ids'].astype("int32").toDlpack())
test_tokenizer_output['attention_mask'] = from_dlpack ( test_tokenizer_output['attention_mask'].astype("int32").toDlpack())
test_tokenizer_output['metadata'] = from_dlpack( test_tokenizer_output['metadata'] .astype("int32").toDlpack()) |
This issue has been labeled |
This PR resolves #8604 and #9447 Authors: - Vibhu Jawa (https://github.com/VibhuJawa) Approvers: - GALI PREM SAGAR (https://github.com/galipremsagar) - David Wendt (https://github.com/davidwendt) - Christopher Harris (https://github.com/cwharris) URL: #9968
This issue has been labeled |
Looks like this has been fixed in #9968 here: cudf/python/cudf/cudf/core/subword_tokenizer.py Lines 23 to 24 in 7f2a16f
Can we close this? |
For 'return_tensors' I tried multiple tensoflow versions with 'tf' and it give the same error but it works just fine with pytorch 'pt'
The text was updated successfully, but these errors were encountered: