when testing Emojify_V2, I run into the following error:
‘function’ object has no attribute ‘dtype’
my code is this:
sentence_indices = Input(input_shape, dtype=‘int32’)
does anyone know what the problem is???
when testing Emojify_V2, I run into the following error:
‘function’ object has no attribute ‘dtype’
my code is this:
sentence_indices = Input(input_shape, dtype=‘int32’)
does anyone know what the problem is???
@Kic Hi, I changed my code to
Input(shape=(maxLen,), dtype='int32')
But I’m still getting the same error as ‘function’ object has no attribute ‘dtype’
What that instruction note suggested is to use keyword args to specify the args you wanted to pass to the Input(),
So the code would look like this:
Input (shape=input_shape, dtype=‘int32’)
where input_shape is a tuple ( max_length, ) - see the comment explaining the input args.
Here is the link to Tensorflow official docs for Input()