提交 4d617d24 编写于 作者: H hedaoyuan

Add a error message.

上级 1dfddae2
......@@ -103,7 +103,10 @@ inline void TensorGpuApply(LeftType& lhs, const RightType& rhs) {
}
#else
template <class T, typename LeftType, typename RightType>
inline void TensorGpuApply(LeftType& lhs, RightType& rhs) {}
inline void TensorGpuApply(LeftType& lhs, RightType& rhs) {
LOG(FATAL) << "Since it is gcc compiled, "
"this calculation does not support GPU implementation.";
}
#endif
} // namespace paddle
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册