Tensorflow .so发布Mac OS X.

时间:2018-01-26 00:28:15

标签: macos tensorflow python-3.5 .so

我无法让Tensorflow示例超越我的导入之外的第一行代码。没有其他错误,我收到以下内容:

NotFoundError: dlopen(/Users/opusandcaymus/Election/word2vec_ops.so, 6): image not found

我在运行Python 3.5的Anaconda 4.0.1中有一个专用的Tensorflow环境。 Tensorflow在1.4.1版本的环境中新安装。我不确定.os文件对word2vec的作用,但Google的示例问题需要这一行(Google Example Link)。提前谢谢。

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function

import os
import sys
import threading
import time

from six.moves import xrange  # pylint: disable=redefined-builtin

import numpy as np
import tensorflow as tf

word2vec = tf.load_op_library(os.path.join(os.path.dirname(os.path.realpath("__file__")), 'word2vec_ops.so'))

0 个答案:

没有答案