Skip to content

Commit

Permalink
Merge pull request #59834 from tensorflow/r2.12-478ea54bcf3
Browse files Browse the repository at this point in the history
r2.12 cherry-pick: 478ea54 "Replace assert with eigen_assert."
  • Loading branch information
learning-to-play committed Mar 1, 2023
2 parents b3a23e4 + e8ef38d commit c8eb0b7
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions tensorflow/tsl/framework/fixedpoint/MatMatProductAVX2.h
Expand Up @@ -173,9 +173,9 @@ gemm_pack_lhs<QInt16, Index, DataMapper, Pack1, Pack2, QInt16, ColMajor,

// Use alternate function for weird sizes
if (rows % 16 != 0 || depth % 16 != 0) {
assert(false &&
"only depths and rows that are a multiple of 16 are currently "
"supported");
eigen_assert(false &&
"only depths and rows that are a multiple of 16 are currently "
"supported");
// gemm_pack_lhs_any<QInt16, Index, DataMapper, Pack1, Pack2, ColMajor,
// Conjugate, PanelMode> lhs_pack;
// return lhs_pack(blockA, lhs, depth, rows, stride, offset);
Expand Down Expand Up @@ -259,9 +259,9 @@ gemm_pack_rhs<QInt16, Index, DataMapper, nr, ColMajor, Conjugate,

// Use alternate function for weird sizes
if (cols % 16 != 0 || depth % 16 != 0) {
assert(false &&
"only depths and cols that are a multiple of 16 are currently "
"supported");
eigen_assert(false &&
"only depths and cols that are a multiple of 16 are currently "
"supported");
// gemm_pack_rhs_any<QInt16, Index, DataMapper, nr, ColMajor, Conjugate,
// PanelMode> rhs_pack;
// return rhs_pack(blockB, rhs, depth, cols, stride, offset);
Expand Down Expand Up @@ -360,9 +360,10 @@ gebp_kernel<QInt16, QInt16, Index, DataMapper, mr, nr, ConjugateLhs,

// Use alternate function for weird sizes
if (rows % 16 != 0 || cols % 16 != 0 || depth % 16 != 0) {
assert(false &&
"only depths, cols and rows that are a multiple of 16 are currently "
"supported");
eigen_assert(
false &&
"only depths, cols and rows that are a multiple of 16 are currently "
"supported");
// gebp_kernel_any<QInt16, QInt16, Index, DataMapper, mr, nr, ConjugateLhs,
// ConjugateRhs> gebp;
// return gebp(res, blockA, blockB, rows, depth, cols, alpha, strideA,
Expand Down

0 comments on commit c8eb0b7

Please sign in to comment.