Answer by Mikhail Stepanov for TypeError: Value passed to parameter 'indices'...
For some enigmatic reason it will work properly if one places K.cast() inside the lambda:input_A = Input(batch_shape=(128,1), name='A_input', dtype='int32')input_B = Input(batch_shape=(128,1),...
View ArticleTypeError: Value passed to parameter 'indices' has DataType float32 not in...
I use Keras to build my model, there are two inputs in my model, whose datatype is 'int32'. And then I use keras Lamba layer to look up in the embedding matric with K.gather(reference, indices). I see...
View Article