z = UMAPLayerhTypeError __init__ takes 1 positional argument but 2 were given报错ValueError Output tensors to a Model must be the output of a Keras Layer thus holding past layer metadata
这个错误通常是因为在创建 Keras 模型时,输出张量不是 Keras 层的输出。这可能是因为您在模型中使用了不支持的层或操作。
要解决这个问题,您可以检查模型中的每个层和操作是否都是 Keras 层,并确保它们都正确地连接在一起。您还可以尝试使用其他 Keras 层或操作来替换当前使用的层或操作,看看是否可以解决问题。如果问题仍然存在,请尝试在 Keras 社区中寻求帮助。
原文地址: https://www.cveoy.top/t/topic/bK5b 著作权归作者所有。请勿转载和采集!