我已经定义了自己的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"