слой внедрения keras, вызывающий тензор потока.python.framework.errors_impl.InvalidArgumentError: - PullRequest
0 голосов
/ 08 июля 2019

вот полный стек

Traceback (most recent call last):
  File "main.py", line 238, in <module>
    nnmodel.cnn(algo='cnnsubfeats')
  File "scripts.py", line 183, in cnn
    validation_split=vs
  File "/opt/anaconda3/envs/oea/lib/python3.6/site-packages/keras/engine/training.py", line 1039, in fit
    validation_steps=validation_steps)
  File "/opt/anaconda3/envs/oea/lib/python3.6/site-packages/keras/engine/training_arrays.py", line 199, in fit_loop
    outs = f(ins_batch)
  File "/opt/anaconda3/envs/oea/lib/python3.6/site-packages/keras/backend/tensorflow_backend.py", line 2715, in __call__
    return self._call(inputs)
  File "/opt/anaconda3/envs/oea/lib/python3.6/site-packages/keras/backend/tensorflow_backend.py", line 2675, in _call
    fetched = self._callable_fn(*array_vals)
  File "/opt/anaconda3/envs/oea/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1439, in __call__
    run_metadata_ptr)
  File "/opt/anaconda3/envs/oea/lib/python3.6/site-packages/tensorflow/python/framework/errors_impl.py", line 528, in __exit__
    c_api.TF_GetCode(self.status.status))
tensorflow.python.framework.errors_impl.InvalidArgumentError: indices[130,3006] = 22349 is not in [0, 12133)
         [[{{node embedding_1/embedding_lookup}} = GatherV2[Taxis=DT_INT32, Tindices=DT_INT32, Tparams=DT_FLOAT, _class=["loc:@training/Adam/Assign_2"], _device="/job:localhost/replica:0/task:0/device:CPU:0"](embedding_1/embeddings/read, embedding_1/Cast, training/Adam/gradients/embedding_1/embedding_lookup_grad/concat/axis)]]

Я пытался увеличить размер словарного запаса, но получил ту же ошибку!

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...