attention_vector = np.mean(get_activations(m,
testing_inputs_1,
print_shape_only=True,
layer_name='attention_vec')[0], axis=2).squeeze()
funcs = [K.function([inp] + [K.learning_phase()], [out]) for out in outputs] # evaluation functions
ValueError: Input tensors to a Functional must come from `tf.keras.Input`. Received: 0 (missing previous layer metadata).
本站文章如无特殊说明,均为本站原创,如若转载,请注明出处:Input tensors to a Functional must come from `tf.keras.Input`. - Python技术站