Quantcast
Channel: TypeError: Value passed to parameter 'indices' has DataType float32 not in list of allowed values: int32, int64 - Stack Overflow
Browsing latest articles
Browse All 2 View Live

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 Article



TypeError: 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
Browsing latest articles
Browse All 2 View Live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>