TensorFlow 1.3.1에서 IsFiniteScalarF32 테스트가 오류 : "expected:false vs actual:true"
으로 실패합니다. 명령 라인 (100) https://github.com/tensorflow/tensorflow/blob/v1.3.1/tensorflow/compiler/xla/tests/array_elementwise_ops_test.cc#L100,에서 현재 bazel test -c opt //tensorflow/compiler/xla/tests:array_elementwise_ops_test_cpu_parallel
디버깅 // tensorflow/compiler/xla/tests : array_elementwise_ops_test_cpu_parallel ppc64le에서 테스트 실패
내가 그러나 다음과 같은 오류지고, 실패를 디버깅 및 std::cout << "value is ***** \n" << result;
를 사용하여 출력을 표시하는 시도 auto result = builder.IsFinite(builder.ConstantR0<float>(NAN));
의 출력을 확인하려는 오전 :
tensorflow/compiler/xla/tests/array_elementwise_ops_test.cc:67:13: error: cannot bind 'std::basic_ostream<char>' lvalue to 'std::basic_ostream<char>&&'
std::cout << "value is ***** \n" << result;
^
In file included from /usr/lib/gcc/ppc64le-redhat-linux/4.8.5/../../../../include/c++/4.8.5/iostream:39:0,
from tensorflow/compiler/xla/tests/array_elementwise_ops_test.cc:21:
/usr/lib/gcc/ppc64le-redhat-linux/4.8.5/../../../../include/c++/4.8.5/ostream:602:5: error: initializing argument 1 of 'std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&&, const _Tp&) [with _CharT = char; _Traits = std::char_traits<char>; _Tp = xla::ComputationDataHandle]'
operator<<(basic_ostream<_CharT, _Traits>&& __os, const _Tp& __x)
을
result
변수의 값을 어떻게 인쇄 할 수 있습니까?