未验证 提交 71474b10 编写于 作者: Y Yuanle Liu 提交者: GitHub

fix static_assert with no message (#53222)

上级 adc2b745
......@@ -535,8 +535,10 @@ void ComputeFusedGemmEpilogueBackwardImpl(const phi::GPUContext& dev_ctx,
bool use_addto_dx,
bool use_addto_dy) {
using MT = typename phi::dtype::MPTypeTrait<T>::Type;
static_assert(std::is_same<DXT, T>::value || std::is_same<DXT, MT>::value);
static_assert(std::is_same<DYT, T>::value || std::is_same<DYT, MT>::value);
static_assert(std::is_same<DXT, T>::value || std::is_same<DXT, MT>::value,
"");
static_assert(std::is_same<DYT, T>::value || std::is_same<DYT, MT>::value,
"");
using Trait = FusedGEMMGradTrait<TransX, TransY>;
if (dx) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册