Fixing duplicate struct name TensorSetConstant. (#5532)
TensorSetConstant struct is used both in math_function.cc and math_function.cu. Somehow the release version can correctly handle it. But in debug version, set_constant_with_place() in math_function.cu uses the TensorSetConstant in math_function.cc and causes crash.
Showing
想要评论请 注册 或 登录