Skip to content
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

Invalid argument error. #11

Open
jasonyli opened this issue Mar 5, 2021 · 0 comments
Open

Invalid argument error. #11

jasonyli opened this issue Mar 5, 2021 · 0 comments

Comments

@jasonyli
Copy link

jasonyli commented Mar 5, 2021

I got this error while running the line (on a GPU):

embeddings = ce.get_embeddings(X_train, y_train, categorical_embedding_info=embedding_info, is_classification=True, epochs=100,batch_size=256)

Can't tell from this error what the problem is. Is it embedding #71 (indexed from 0) the 71th LabelEncoder or the 71st column in the original X_train dataframe that is causing issue?

'2 root error(s) found.\n (0) Invalid argument: indices[5,0] = 2 is not in [0, 2)\n\t [[node model/embedding_71/embedding_lookup (defined at /miniconda3/lib/python3.8/site-packages/categorical_embedder/init.py:175) ]]\n (1) Invalid argument: indices[5,0] = 2 is not in [0, 2)\n\t [[node model/embedding_71/embedding_lookup (defined at /miniconda3/lib/python3.8/site-packages/categorical_embedder/init.py:175) ]]\n\t [[ArithmeticOptimizer/ReorderCastLikeAndValuePreserving_int32_ExpandDims_23/_537]]\n0 successful operations.\n0 derived errors ignored. [Op:__inference_train_function_11843]\n\nErrors may have originated from an input operation.\nInput Source operations connected to node model/embedding_71/embedding_lookup:\n model/embedding_71/embedding_lookup/7853 (defined at /miniconda3/lib/python3.8/contextlib.py:113)\n\nInput Source operations connected to node model/embedding_71/embedding_lookup:\n model/embedding_71/embedding_lookup/7853 (defined at /miniconda3/lib/python3.8/contextlib.py:113)\n\nFunction call stack:\ntrain_function -> train_function\n'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant