系统:Ubuntu 16.04 Bazel:0.4.5 TensorFlow:cpu版本r1.0 gcc版本:(Ubuntu 5.4.0-6Ubuntu1~16.04.4)5.4.0 201 60609
bazel build-c opt//tensorflow/contrib/android:libtensorflow_inference.so\
tensorflow/core/kernels/BUILD:3749:1: C++ compilation of rule '//tensorflow/core/kernels:android_tensorflow_kernels' failed: Process exited with status 1 [sandboxed].
tensorflow/core/kernels/split_v_op.cc:212:28: error: non-constant-expression cannot be narrowed from type 'value_type' (aka 'long long') to 'int' in initializer list [-Wc++11-narrowing]
prefix_dim_size, split_sizes_vec[i], suffix_dim_size};
^~~~~~~~~~~~~~~~~~
tensorflow/core/kernels/split_v_op.cc:172:12: note: in instantiation of member function 'tensorflow::SplitVOpCPU<int, long long>::Compute' requested here
explicit SplitVOpCPU(OpKernelConstruction* c) : Base(c) {}
^
tensorflow/core/kernels/split_v_op.cc:355:19: note: in instantiation of member function 'tensorflow::SplitVOpCPU<int, long long>::SplitVOpCPU' requested here
TF_CALL_ALL_TYPES(REGISTER_SPLIT_LEN);
^
tensorflow/core/kernels/split_v_op.cc:212:28: note: insert an explicit cast to silence this issue
prefix_dim_size, split_sizes_vec[i], suffix_dim_size};
^~~~~~~~~~~~~~~~~~
static_cast<int>( )
tensorflow/core/kernels/split_v_op.cc:212:28: error: non-constant-expression cannot be narrowed from type 'value_type' (aka 'long long') to 'int' in initializer list [-Wc++11-narrowing]
prefix_dim_size, split_sizes_vec[i], suffix_dim_size};
^~~~~~~~~~~~~~~~~~
tensorflow/core/kernels/split_v_op.cc:172:12: note: in instantiation of member function 'tensorflow::SplitVOpCPU<float, long long>::Compute' requested here
explicit SplitVOpCPU(OpKernelConstruction* c) : Base(c) {}
^
tensorflow/core/kernels/split_v_op.cc:355:19: note: in instantiation of member function 'tensorflow::SplitVOpCPU<float, long long>::SplitVOpCPU' requested here
TF_CALL_ALL_TYPES(REGISTER_SPLIT_LEN);
^
tensorflow/core/kernels/split_v_op.cc:212:28: note: insert an explicit cast to silence this issue
prefix_dim_size, split_sizes_vec[i], suffix_dim_size};
^~~~~~~~~~~~~~~~~~
static_cast<int>( )
tensorflow/core/kernels/split_v_op.cc:212:28: error: non-constant-expression cannot be narrowed from type 'value_type' (aka 'long long') to 'int' in initializer list [-Wc++11-narrowing]
prefix_dim_size, split_sizes_vec[i], suffix_dim_size};
^~~~~~~~~~~~~~~~~~
tensorflow/core/kernels/split_v_op.cc:172:12: note: in instantiation of member function 'tensorflow::SplitVOpCPU<tensorflow::bfloat16, long long>::Compute' requested here
explicit SplitVOpCPU(OpKernelConstruction* c) : Base(c) {}
^
tensorflow/core/kernels/split_v_op.cc:356:1: note: in instantiation of member function 'tensorflow::SplitVOpCPU<tensorflow::bfloat16, long long>::SplitVOpCPU' requested here
REGISTER_SPLIT_LEN(bfloat16);
^
tensorflow/core/kernels/split_v_op.cc:353:3: note: expanded from macro 'REGISTER_SPLIT_LEN'
REGISTER_SPLIT(type, int64);
^
tensorflow/core/kernels/split_v_op.cc:349:27: note: expanded from macro 'REGISTER_SPLIT'
SplitVOpCPU<type, len_type>);
^
tensorflow/core/kernels/split_v_op.cc:212:28: note: insert an explicit cast to silence this issue
prefix_dim_size, split_sizes_vec[i], suffix_dim_size};
^~~~~~~~~~~~~~~~~~
static_cast<int>( )
3 errors generated.
Use --strategy=CppCompile=standalone to disable sandboxing for the failing actions.
Target //tensorflow/contrib/android:libtensorflow_inference.so failed to build
Use --verbose_failures to see the command lines of failed build steps.
这些错误来自Android NDK R13中从gcc到Clang的切换。为了获得最好的效果,当用Bazel构建时,暂时使用NDK r12b。
当我使用时,我得到一个KeyError,同时构建我的pyplay程序。我为什么会得到这个,我该如何修复它? 我的设置。具体如下:
所以我只想使用谷歌云视觉应用编程接口从图像中检测文本或标签。但是当我运行这段代码时,我总是得到: 但我不知道为什么。。。下面是我得到的完整json输出: 我的测试代码如下: 所以问题是。。此代码有什么问题?
我知道,当我不知道列名时,使用apply或不同的方法可以获得最小值。但是,我想知道dplyr mutate函数是否能够在没有已知列名的情况下做到这一点。 谢谢你,
我正在使用spring-kafka-2.2.7。RELEASE并尝试在方法级别使用@KafkaListener与ConvoltKafkaListenerContainerFactory一起创建一个消费者。根据我的理解,这将创建一个ConvoltMessageListenerContainer。 > 如果我有两种不同的方法使用@KafkaListener来消费两个不同的主题,它会创建两个Contop
我需要一个明确的解释这一点,即使我读了这个关于差异的链接,但没有明确的清晰。那么有没有人可以简单地用代码向我解释一下呢?
我的代码是 此代码给出的输出为 以及如何打印所有组的开始和结束索引?