Hello!
with “context, target = inputs(tuple(to_translate)), inputs(tuple(sr_translation))”
also with 'context, target = inputs(tuple(to_translate),tuple(sr_translation))"
Type error
Type error
What else may be wrong?
—> 38 context, target = inputs(tuple(to_translate)), inputs(tuple(sr_translation)) # In this case inputs is a tuple consisting of the context and the target, unpack it into single variables
39
40 # Pass the context through the encoder
TypeError: Exception encountered when calling layer ‘translator_7’ (type Translator).
‘tuple’ object is not callable
Call arguments received by layer ‘translator_7’ (type Translator):
• inputs=(‘tf.Tensor(shape=(64, 14), dtype=int64)’, ‘tf.Tensor(shape=(64, 15), dtype=int64)’)
TypeError: Exception encountered when calling layer ‘translator_8’ (type Translator).
‘tuple’ object is not callable
Call arguments received by layer ‘translator_8’ (type Translator):
• inputs=(‘tf.Tensor(shape=(64, 14), dtype=int64)’, ‘tf.Tensor(shape=(64, 15), dtype=int64)’)