Elastic Beanstalk和Django上的Tensorflow

问题描述

    import tensorflow as tf
    with tf.Graph().as_default():
        sentences = tf.placeholder(tf.string)
        import tensorflow_hub as hub
        embed = hub.Module('/tmp/module')
        embeddings = embed(sentences)

这是来自Django应用程序中的views.py文件。 在导入时执行失败,并显示以下错误

标头之前的脚本输出结束:wsgi.py child pid 29409 exit 信号分割错误(11)

虽然在我的本地计算机上可以正常工作。 我目前正在使用t3中型实例。有关如何解决此问题的任何提示

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)