更新时间:2022-06-11 04:04:06
这是TensorFlow中常见问题的一部分: https://www.tensorflow.org/hub/common_issues
This is part of the common issues in TensorFlow: https://www.tensorflow.org/hub/common_issues
解决方案是提取所需的签名,例如:
Solution is to extract the signature that you need, for example:
embed = hub.load('https://tfhub.dev/google/nnlm-en-dim128/1')
embed.signatures['default'](['my text', 'batch'])