Skip to content

Commit

Permalink
Fix a bug in FbgemmFP16
Browse files Browse the repository at this point in the history
  • Loading branch information
lifeiteng committed Dec 23, 2018
1 parent bd35fce commit 1e83fef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/FbgemmFP16.cc
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ FBGEMM_API void cblas_gemm_compute(

const int kb = std::min(Bp.blockRowSize(), Bp.numRows() - k_ind);

auto m1 = 0;
auto m1 = m0;
for (auto c = 0; c < 2; c++) {
auto kernel_nrows = KernelInfo::partition[mb][c][0];
auto nkernel_nrows = KernelInfo::partition[mb][c][1];
Expand Down
2 changes: 1 addition & 1 deletion test/FP16Test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ TEST_P(FBGemmFP16Test, Test) {
vector<vector<int>> shapes;
random_device r;
default_random_engine generator(r());
uniform_int_distribution<int> dm(1, 100);
uniform_int_distribution<int> dm(1, 256);
uniform_int_distribution<int> dnk(1, 1024);
for (int i = 0; i < 10; i++) {
int m = dm(generator);
Expand Down

0 comments on commit 1e83fef

Please sign in to comment.