从自定义Tensorflow操作记录(VLOG问题)

时间:2017-03-09 00:13:59

标签: tensorflow

我已经定义了自己的tensorflow操作,并且在其中使用了VLOG但是当我尝试运行操作时,我得到了:

NotFoundError: dlopen(/Users/alex/git/tensorflow/bazel-bin/tensorflow/core/user_ops/my_op.so, 6): Symbol not found: __ZN10tensorflow8internal10LogMessage12MinVLogLevelEv
  Referenced from: /Users/alex/git/tensorflow/bazel-bin/tensorflow/core/user_ops/my_op.so
  Expected in: flat namespace
 in /Users/alex/git/tensorflow/bazel-bin/tensorflow/core/user_ops/my_op.so

从自定义操作中记录的建议方式是什么?

我已经包括:

#include "tensorflow/core/platform/logging.h"

0 个答案:

没有答案