Emojify_V2: ‘function’ object has no attribute ‘dtype’

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???

Hi @keks1208,

The instruction note suggested:

raw_inputs = Input(shape=(maxLen,), dtype=‘int32’)

@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’

@keks1208 ,

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()